aboutsummaryrefslogtreecommitdiff
path: root/stdio-common/tst-printf-round.c
diff options
context:
space:
mode:
authorJoseph Myers <joseph@codesourcery.com>2014-11-25 23:31:21 +0000
committerJoseph Myers <joseph@codesourcery.com>2014-11-25 23:31:21 +0000
commit439e1ad6d04e24f76f92ff7f61153fbe489559b9 (patch)
treec709adb81d02ffa386339d4b62953ea7d87e4b46 /stdio-common/tst-printf-round.c
parentb1eda10e17bf2056ca79a534d92fe0b0b06bd410 (diff)
downloadglibc-439e1ad6d04e24f76f92ff7f61153fbe489559b9.zip
glibc-439e1ad6d04e24f76f92ff7f61153fbe489559b9.tar.gz
glibc-439e1ad6d04e24f76f92ff7f61153fbe489559b9.tar.bz2
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.
Diffstat (limited to 'stdio-common/tst-printf-round.c')
-rw-r--r--stdio-common/tst-printf-round.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/stdio-common/tst-printf-round.c b/stdio-common/tst-printf-round.c
index b76360f..5035dda 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];