From: Bruno Haible Date: Sun, 16 Aug 2020 11:00:54 +0000 (+0200) Subject: Fix "warning: no case matching constant switch condition '0'". X-Git-Tag: v1.0~3739 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=e520e148f1690754290ca455004e2c20ee8e51a2;p=thirdparty%2Fgnulib.git Fix "warning: no case matching constant switch condition '0'". * tests/test-fcntl.c (check_flags): Add a 'default' case. --- diff --git a/ChangeLog b/ChangeLog index 696aefc76d..d2b2277e56 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,8 @@ 2020-08-16 Bruno Haible + Fix "warning: no case matching constant switch condition '0'". + * tests/test-fcntl.c (check_flags): Add a 'default' case. + Fix "warning: integer overflow in expression". * tests/test-strtol.c (main): Use an 'unsigned long' expression to remove a 'long' overflow. diff --git a/tests/test-fcntl.c b/tests/test-fcntl.c index 1f5565a029..9ef354c03d 100644 --- a/tests/test-fcntl.c +++ b/tests/test-fcntl.c @@ -206,6 +206,7 @@ check_flags (void) # endif #endif + default: ; } }