]> Savannah Git Hosting - gnulib.git/commit
fallthrough: update for GCC 7/8
authorJim Meyering <meyering@fb.com>
Thu, 18 May 2017 15:36:27 +0000 (08:36 -0700)
committerJim Meyering <meyering@fb.com>
Fri, 19 May 2017 23:47:09 +0000 (16:47 -0700)
commit11fdf80b21f2b40a10687b9a3d16c852b19d512c
tree06b2c31b901f30ba9e802ab6487290e84a60c4f2
parent06094e390b058f1318e7885b13c3b5c2aaa42927
fallthrough: update for GCC 7/8

* lib/quotearg.c (FALLTHROUGH): New macro.
Use it whenever one switch case falls through into the next,
replacing "/* Fall through */" comments.  This exposed one
instance of an unwarranted "fall through" comment: unwarranted
because it preceded a "goto" label not a case statement.
* lib/freopen-safer.c (freopen_safer): Likewise.
* lib/fts.c (leaf_optimization_applies): Likewise.
* lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Likewise.
* tests/test-getopt_long.h (getopt_long_loop): Likewise.
* tests/test-tsearch.c (mangle_tree): Likewise.  Also include
tests/macros.h for the definition.
* tests/test-argp.c (group1_parser): Likewise.
* tests/test-getopt.h (getopt_loop): Likewise.
ChangeLog
lib/freopen-safer.c
lib/fts.c
lib/quotearg.c
lib/unistr/u8-uctomb-aux.c
tests/test-argp.c
tests/test-getopt.h
tests/test-getopt_long.h
tests/test-tsearch.c