]> Savannah Git Hosting - gnulib.git/commitdiff
Fix "warning: no case matching constant switch condition '0'".
authorBruno Haible <bruno@clisp.org>
Sun, 16 Aug 2020 11:00:54 +0000 (13:00 +0200)
committerBruno Haible <bruno@clisp.org>
Sun, 16 Aug 2020 11:00:54 +0000 (13:00 +0200)
* tests/test-fcntl.c (check_flags): Add a 'default' case.

ChangeLog
tests/test-fcntl.c

index 696aefc76d17fa416b99d1482c3e128ec991e3e2..d2b2277e562842a2f7c5bf127baef6132e485a17 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2020-08-16  Bruno Haible  <bruno@clisp.org>
 
+       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.
index 1f5565a0299857c3a60897cfac0aeeedc1dda0e9..9ef354c03d8e49957c5a5d9a5f0a6bf0a639639c 100644 (file)
@@ -206,6 +206,7 @@ check_flags (void)
 # endif
 #endif
 
+    default:
       ;
     }
 }