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