]> Savannah Git Hosting - gnulib.git/commit
long-options: avoid new GCC 7 warning from -Wimplicit-fallthrough
authorJim Meyering <meyering@fb.com>
Wed, 5 Oct 2016 17:43:09 +0000 (10:43 -0700)
committerJim Meyering <meyering@fb.com>
Wed, 12 Oct 2016 04:50:06 +0000 (21:50 -0700)
commit0a4afb9850a6ca342ec111be88ea4d8d795633e8
treea27a5e7c098cef384090f6f4f96febaca4a89e0f
parentea93369179051c87f2adce8ceef652626f78cb7d
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);
           ~^~~~~~~~~~~~~~~~~~~~~~~~~~~
ChangeLog