From: Jim Meyering Date: Fri, 13 Nov 2020 15:34:28 +0000 (-0800) Subject: hard-locale-tests: avoid a -Wstrict-prototypes warning X-Git-Tag: v1.0~3518 X-Git-Url: https://gitweb.git.savannah.gnu.org/gitweb/?a=commitdiff_plain;h=825ec33c7af090f7d9b3f6cf46c705b9f7e95802;p=gnulib.git 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. --- 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, "");