From: Joseph Myers Date: Tue, 25 Nov 2014 23:31:21 +0000 (+0000) Subject: Fix warning in stdio-common/tst-printf-round.c. X-Git-Tag: glibc-2.21~329 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=439e1ad6d04e24f76f92ff7f61153fbe489559b9;p=thirdparty%2Fglibc.git Fix warning in stdio-common/tst-printf-round.c. 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. --- diff --git a/ChangeLog b/ChangeLog index c020ed42b96..23fba3607d5 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2014-11-25 Joseph Myers + + * stdio-common/tst-printf-round.c (test_hex_in_one_mode): Make + third argument const. + 2014-11-25 Paul Eggert fnmatch: work around GCC compiler warning bug with uninit var diff --git a/stdio-common/tst-printf-round.c b/stdio-common/tst-printf-round.c index b76360f7e94..5035ddae4ce 100644 --- a/stdio-common/tst-printf-round.c +++ b/stdio-common/tst-printf-round.c @@ -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];