]> Savannah Git Hosting - gnulib.git/commitdiff
hard-locale-tests: avoid a -Wstrict-prototypes warning
authorJim Meyering <meyering@fb.com>
Fri, 13 Nov 2020 15:34:28 +0000 (07:34 -0800)
committerJim Meyering <meyering@fb.com>
Fri, 13 Nov 2020 15:34:28 +0000 (07:34 -0800)
* 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
tests/locale.c

index fe298605e77cba4ffbf4e153ab46c242461f3cd2..82508f05c3cb69ab09f4ec822c5e2252df4ae3a8 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2020-11-13  Jim Meyering  <meyering@fb.com>
+
+       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  <eggert@cs.ucla.edu>
 
        time_rz: simplify CVE-2017-7476 fix
index 323040c48df9ede65a469b701807000e72c28d64..b31df34d70aa971efe84f062f5082702225d01b0 100644 (file)
@@ -49,7 +49,7 @@ print_category (int category, const char *variable)
 }
 
 int
-main ()
+main (void)
 {
   setlocale (LC_ALL, "");