manywarnings: update for GCC 7
commit5e22aee79f9d02ac37f40f1d18f5696114c3c3c9
authorPaul Eggert <eggert@cs.ucla.edu>
Tue, 16 May 2017 16:23:52 +0000 (16 09:23 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Tue, 16 May 2017 16:32:31 +0000 (16 09:32 -0700)
tree4aaf6260ac32cc633d0513dbf58b396ca8c9ad99
parent0414a24cf57f1569b0b4f2a0f22898a0943dfc14
manywarnings: update for GCC 7

* build-aux/gcc-warning.spec:
* m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC):
Add GCC 7 warnings, notably -Wimplicit-fallthrough=5, which
requires a non-comment fallthrough attribute.  This is a bit
cleaner than the comment versions.
* lib/strftime.c, lib/dfa.c, lib/fnmatch.c, lib/mbrtowc.c:
* lib/vasnprintf.c, tests/macros.h (FALLTHROUGH): New macro.
Use it whenever one switch case falls through into the next.
12 files changed:
ChangeLog
build-aux/gcc-warning.spec
lib/dfa.c
lib/fnmatch.c
lib/fnmatch_loop.c
lib/mbrtowc.c
lib/strftime.c
lib/vasnprintf.c
m4/manywarnings.m4
tests/macros.h
tests/test-mbrtowc.c
tests/test-sigpipe.c