Remove an unused variable in localedata tests.
authorRoland McGrath <roland@hack.frob.com>
Sat, 2 Jul 2011 23:32:24 +0000 (16:32 -0700)
committerRoland McGrath <roland@hack.frob.com>
Sat, 2 Jul 2011 23:32:24 +0000 (16:32 -0700)
localedata/ChangeLog
localedata/tests-mbwc/tst_funcs.h

index 78965fb..e0e2207 100644 (file)
@@ -1,3 +1,8 @@
+2011-07-02  Roland McGrath  <roland@hack.frob.com>
+
+       * tests-mbwc/tst_funcs.h (TST_DECL_VARS, TST_HEAD_LOCALE):
+       Remove unused variable.
+
 2011-05-21  Ulrich Drepper  <drepper@gmail.com>
 
        [BZ #12788]
index 552bed2..23dc6a0 100644 (file)
@@ -84,7 +84,7 @@ extern int result (FILE * fp, char res, const char *func, const char *loc,
 #define TST_DECL_VARS(_type_)                          \
        int   loc, rec, err_count = 0;                  \
        int   warn_count __attribute__ ((unused));      \
-       int   func_id, seq_num = 0;                     \
+       int   seq_num = 0;                              \
        const char *locale;                             \
        int   err_exp, ret_flg;                         \
        int errno_save = 0;                             \
@@ -96,8 +96,7 @@ extern int result (FILE * fp, char res, const char *func, const char *loc,
 
 
 #define TST_HEAD_LOCALE(ofunc, s_func) \
-  func_id = TST_HEAD (ofunc).func_id;                                        \
-  locale  = TST_HEAD (ofunc).locale;                                         \
+  locale = TST_HEAD (ofunc).locale;                                          \
   if (setlocale (LC_ALL, locale) == NULL)                                    \
     {                                                                        \
       fprintf (stderr, "Warning : can't set locale: %s\nskipping ...\n",      \