]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Fix warning in stdio-common/tst-printf-round.c.
authorJoseph Myers <joseph@codesourcery.com>
Tue, 25 Nov 2014 23:31:21 +0000 (23:31 +0000)
committerJoseph Myers <joseph@codesourcery.com>
Tue, 25 Nov 2014 23:31:21 +0000 (23:31 +0000)
This patch fixes warnings of the form "tst-printf-round.c:202:17:
warning: passing argument 3 of 'test_hex_in_one_mode' discards 'const'
qualifier from pointer target type", by adding an extra const to that
argument (so that after array-to-pointer conversion it's const char
*const *).

Tested for x86_64.

* stdio-common/tst-printf-round.c (test_hex_in_one_mode): Make
third argument const.

ChangeLog
stdio-common/tst-printf-round.c

index c020ed42b96096df4828d2638606749b2b4bf15a..23fba3607d531d619939218aafeaa55baa88633d 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2014-11-25  Joseph Myers  <joseph@codesourcery.com>
+
+       * stdio-common/tst-printf-round.c (test_hex_in_one_mode): Make
+       third argument const.
+
 2014-11-25  Paul Eggert  <eggert@cs.ucla.edu>
 
        fnmatch: work around GCC compiler warning bug with uninit var
index b76360f7e949cc1aaaab9ebd6dceec78481bad70..5035ddae4ce44b50df6751fa313a22b4bda30731 100644 (file)
@@ -136,7 +136,7 @@ static const struct hex_test hex_tests[] =
   };
 
 static int
-test_hex_in_one_mode (double d, const char *fmt, const char *expected[4],
+test_hex_in_one_mode (double d, const char *fmt, const char *const expected[4],
                      const char *mode_name)
 {
   char buf[100];