about summary refs log tree commit diff
path: root/localedata
diff options
context:
space:
mode:
authorRoland McGrath <roland@hack.frob.com>2011-07-02 16:32:24 -0700
committerRoland McGrath <roland@hack.frob.com>2011-07-02 16:32:24 -0700
commitd3bdf19b78aa4de74030175bbd9c41971428af81 (patch)
tree188da34d368c1e9c0a4532ec29eaa20e385a651c /localedata
parent84f9ea0f73dbb3946294acf132f03ab437befc73 (diff)
downloadglibc-d3bdf19b78aa4de74030175bbd9c41971428af81.tar.gz
glibc-d3bdf19b78aa4de74030175bbd9c41971428af81.tar.xz
glibc-d3bdf19b78aa4de74030175bbd9c41971428af81.zip
Remove an unused variable in localedata tests.
Diffstat (limited to 'localedata')
-rw-r--r--localedata/ChangeLog5
-rw-r--r--localedata/tests-mbwc/tst_funcs.h5
2 files changed, 7 insertions, 3 deletions
diff --git a/localedata/ChangeLog b/localedata/ChangeLog
index 78965fbd0e..e0e22070fd 100644
--- a/localedata/ChangeLog
+++ b/localedata/ChangeLog
@@ -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]
diff --git a/localedata/tests-mbwc/tst_funcs.h b/localedata/tests-mbwc/tst_funcs.h
index 552bed2f9c..23dc6a0065 100644
--- a/localedata/tests-mbwc/tst_funcs.h
+++ b/localedata/tests-mbwc/tst_funcs.h
@@ -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",      \