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