00db10
commit 439e1ad6d04e24f76f92ff7f61153fbe489559b9
00db10
Author: Joseph Myers <joseph@codesourcery.com>
00db10
Date:   Tue Nov 25 23:31:21 2014 +0000
00db10
00db10
    Fix warning in stdio-common/tst-printf-round.c.
00db10
    
00db10
    This patch fixes warnings of the form "tst-printf-round.c:202:17:
00db10
    warning: passing argument 3 of 'test_hex_in_one_mode' discards 'const'
00db10
    qualifier from pointer target type", by adding an extra const to that
00db10
    argument (so that after array-to-pointer conversion it's const char
00db10
    *const *).
00db10
    
00db10
    Tested for x86_64.
00db10
    
00db10
            * stdio-common/tst-printf-round.c (test_hex_in_one_mode): Make
00db10
            third argument const.
00db10
00db10
diff --git a/stdio-common/tst-printf-round.c b/stdio-common/tst-printf-round.c
00db10
index 7cc19c5645dcc806..7f40a713636302b8 100644
00db10
--- a/stdio-common/tst-printf-round.c
00db10
+++ b/stdio-common/tst-printf-round.c
00db10
@@ -136,7 +136,7 @@ static const struct hex_test hex_tests[] =
00db10
   };
00db10
 
00db10
 static int
00db10
-test_hex_in_one_mode (double d, const char *fmt, const char *expected[4],
00db10
+test_hex_in_one_mode (double d, const char *fmt, const char *const expected[4],
00db10
 		      const char *mode_name)
00db10
 {
00db10
   char buf[100];