]> Savannah Git Hosting - gnulib.git/commitdiff
threads-h tests: Avoid clang warnings.
authorBruno Haible <bruno@clisp.org>
Fri, 24 Dec 2021 15:39:26 +0000 (16:39 +0100)
committerBruno Haible <bruno@clisp.org>
Fri, 24 Dec 2021 15:39:26 +0000 (16:39 +0100)
* tests/test-threads.c (main): Add 'default' to switch statements.

ChangeLog
tests/test-threads.c

index e4eb32e0ee814622316488a0d5db06afb7b07faf..66b7fd49ab371770615a66f8eba42650d9c410be 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2021-12-24  Bruno Haible  <bruno@clisp.org>
+
+       threads-h tests: Avoid clang warnings.
+       * tests/test-threads.c (main): Add 'default' to switch statements.
+
 2021-12-24  Bruno Haible  <bruno@clisp.org>
 
        doc: Small updates.
index 4570e19cda2f20534d16f9485d2c69d39a4da742..d832ee72ae2f1b08c0990e88d626463695cf7d70 100644 (file)
@@ -46,6 +46,7 @@ main (void)
     case thrd_busy:
     case thrd_nomem:
     case thrd_error:
+    default:
       ;
     }
 
@@ -56,6 +57,7 @@ main (void)
     case mtx_timed:
     case mtx_plain | mtx_recursive:
     case mtx_timed | mtx_recursive:
+    default:
       ;
     }