>From e520e148f1690754290ca455004e2c20ee8e51a2 Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Sun, 16 Aug 2020 13:00:54 +0200 Subject: [PATCH 10/13] Fix "warning: no case matching constant switch condition '0'". * tests/test-fcntl.c (check_flags): Add a 'default' case. --- ChangeLog | 3 +++ tests/test-fcntl.c | 1 + 2 files changed, 4 insertions(+) diff --git a/ChangeLog b/ChangeLog index 696aefc..d2b2277 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 1f5565a..9ef354c 100644 --- a/tests/test-fcntl.c +++ b/tests/test-fcntl.c @@ -206,6 +206,7 @@ check_flags (void) # endif #endif + default: ; } } -- 2.7.4