arrfab / rpms / glibc

Forked from rpms/glibc 4 years ago
Clone

Blame SOURCES/glibc-rh1505492-unused-4.patch

147e83
commit d540fc8a66507bbbdc7e6594872786527c7667fa
147e83
Author: Ondřej Bílka <neleai@seznam.cz>
147e83
Date:   Mon Nov 18 13:12:29 2013 +0100
147e83
147e83
    Remove unused variable.
147e83
147e83
diff --git a/localedata/tests-mbwc/tst_mbrtowc.c b/localedata/tests-mbwc/tst_mbrtowc.c
147e83
index 3a6070a870550552..ffb33ce11e1d72b7 100644
147e83
--- a/localedata/tests-mbwc/tst_mbrtowc.c
147e83
+++ b/localedata/tests-mbwc/tst_mbrtowc.c
147e83
@@ -16,7 +16,7 @@ tst_mbrtowc (FILE * fp, int debug_flg)
147e83
   char w_flg, s_flg;
147e83
   char *s;
147e83
   size_t n;
147e83
-  char t_flg, t_ini;
147e83
+  char t_flg;
147e83
   static mbstate_t t = { 0 };
147e83
   mbstate_t *pt;
147e83
   wchar_t wc, *pwc, wc_ex;
147e83
@@ -42,7 +42,6 @@ tst_mbrtowc (FILE * fp, int debug_flg)
147e83
 	s = TST_INPUT_SEQ (mbrtowc).s;
147e83
 	n = TST_INPUT_SEQ (mbrtowc).n;
147e83
 	t_flg = TST_INPUT_SEQ (mbrtowc).t_flg;
147e83
-	t_ini = TST_INPUT_SEQ (mbrtowc).t_init;
147e83
 	pwc = (w_flg == 0) ? NULL : &wc;
147e83
 
147e83
 	if (s_flg == 0)
147e83
@@ -56,12 +55,7 @@ tst_mbrtowc (FILE * fp, int debug_flg)
147e83
 	  }
147e83
 
147e83
 	pt = (t_flg == 0) ? NULL : &t;
147e83
-#if 0
147e83
-	if (t_ini != 0)
147e83
-	  {
147e83
-	    memset (&t, 0, sizeof (t));
147e83
-	  }
147e83
-#endif
147e83
+
147e83
 	TST_CLEAR_ERRNO;
147e83
 	ret = mbrtowc (pwc, s, n, pt);
147e83
 	TST_SAVE_ERRNO;