From: Paul Eggert Date: Sat, 15 Jan 2022 03:42:57 +0000 (-0800) Subject: nstrftime: pacify nvc 22.1 unreachable statement X-Git-Tag: v1.0~2394 X-Git-Url: https://gitweb.git.savannah.gnu.org/gitweb/?a=commitdiff_plain;h=cbe61cd260c2978bd008e2064c6efd49e41ac807;p=gnulib.git nstrftime: pacify nvc 22.1 unreachable statement * lib/nstrftime.c (__strftime_internal): Omit unreachable ‘break;’. --- diff --git a/ChangeLog b/ChangeLog index 9113099129..d49794f433 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,9 @@ 2022-01-14 Paul Eggert + nstrftime: pacify nvc 22.1 unreachable statement + * lib/nstrftime.c (__strftime_internal): + Omit unreachable ‘break;’. + tests: pacify nvc 22.1 unreachable statement * tests/test-sys_wait.h (test_sys_wait_macros): Widen scope of ‘#if 0’ so that there is not an unreachable ‘break;’. diff --git a/lib/nstrftime.c b/lib/nstrftime.c index 3b5433c131..c1dd554247 100644 --- a/lib/nstrftime.c +++ b/lib/nstrftime.c @@ -1158,7 +1158,6 @@ __strftime_internal (STREAM_OR_CHAR_T *s, STRFTIME_ARG (size_t maxsize) case L_('q'): /* GNU extension. */ DO_SIGNED_NUMBER (1, false, ((tp->tm_mon * 11) >> 5) + 1); - break; case L_('R'): subfmt = L_("%H:%M");