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
--- a/lib/long-options.c	Wed Oct 05 09:13:55 2016 -0700
+++ b/lib/long-options.c	Wed Oct 05 10:43:09 2016 -0700
@@ -64,6 +64,7 @@
         {
         case 'h':
           (*usage_func) (EXIT_SUCCESS);
+          break;
 
         case 'v':
           {