]> Savannah Git Hosting - gnulib.git/commitdiff
nstrftime: pacify nvc 22.1 unreachable statement
authorPaul Eggert <eggert@cs.ucla.edu>
Sat, 15 Jan 2022 03:42:57 +0000 (19:42 -0800)
committerPaul Eggert <eggert@cs.ucla.edu>
Sat, 15 Jan 2022 03:43:25 +0000 (19:43 -0800)
* lib/nstrftime.c (__strftime_internal):
Omit unreachable ‘break;’.

ChangeLog
lib/nstrftime.c

index 911309912989d50f722ff7956add0708784aee20..d49794f43391cc87a861165463982e34bab209d9 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
 2022-01-14  Paul Eggert  <eggert@cs.ucla.edu>
 
+       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;’.
index 3b5433c131e2e061179f4ddddef5f7aa6ca63323..c1dd5542478f45bd89bd06b89b697aeebd60c60f 100644 (file)
@@ -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");