From: Bruno Haible Date: Fri, 24 Dec 2021 15:39:26 +0000 (+0100) Subject: threads-h tests: Avoid clang warnings. X-Git-Tag: v1.0~2495 X-Git-Url: https://gitweb.git.savannah.gnu.org/gitweb/?a=commitdiff_plain;h=5b8b737d00e060f7686226577fcec020f4e0e194;p=gnulib.git threads-h tests: Avoid clang warnings. * tests/test-threads.c (main): Add 'default' to switch statements. --- diff --git a/ChangeLog b/ChangeLog index e4eb32e0ee..66b7fd49ab 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2021-12-24 Bruno Haible + + threads-h tests: Avoid clang warnings. + * tests/test-threads.c (main): Add 'default' to switch statements. + 2021-12-24 Bruno Haible doc: Small updates. diff --git a/tests/test-threads.c b/tests/test-threads.c index 4570e19cda..d832ee72ae 100644 --- a/tests/test-threads.c +++ b/tests/test-threads.c @@ -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: ; }