Mercurial > gnulib
diff lib/long-options.c @ 18442:5a47f1f1de9b
long-options: avoid new GCC 7 warning from -Wimplicit-fallthrough
* lib/long-options.c (parse_long_options): Add a break statement
to avoid this new warning/failure:
$ CFLAGS='-O -Werror=implicit-fallthrough' ./gnulib-tool \
--create-testdir --dir=/t/x --with-tests --test long-options
../../gllib/long-options.c: In function ‘parse_long_options’:
../../gllib/long-options.c:66:12: error: this statement may \
fall through [-Werror=implicit-fallthrough]
(*usage_func) (EXIT_SUCCESS);
~^~~~~~~~~~~~~~~~~~~~~~~~~~~
author | Jim Meyering <meyering@fb.com> |
---|---|
date | Wed, 05 Oct 2016 10:43:09 -0700 |
parents | 31b2239ca59c |
children | 12df2165ec1c |
line wrap: on
line diff