From 825ec33c7af090f7d9b3f6cf46c705b9f7e95802 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Fri, 13 Nov 2020 07:34:28 -0800 Subject: [PATCH] hard-locale-tests: avoid a -Wstrict-prototypes warning * tests/locale.c (main): Placate gcc's -Wstrict-prototypes by changing "main ()" to "main (void)". This was the only case that triggered a warning when building grep with --enable-gcc-warnings. --- ChangeLog | 7 +++++++ tests/locale.c | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index fe298605e7..82508f05c3 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2020-11-13 Jim Meyering + + hard-locale-tests: avoid a -Wstrict-prototypes warning + * tests/locale.c (main): Placate gcc's -Wstrict-prototypes by + changing "main ()" to "main (void)". This was the only case that + triggered a warning when building grep with --enable-gcc-warnings. + 2020-11-11 Paul Eggert time_rz: simplify CVE-2017-7476 fix diff --git a/tests/locale.c b/tests/locale.c index 323040c48d..b31df34d70 100644 --- a/tests/locale.c +++ b/tests/locale.c @@ -49,7 +49,7 @@ print_category (int category, const char *variable) } int -main () +main (void) { setlocale (LC_ALL, ""); -- 2.39.5