Author: asomers
Date: Fri Dec  8 17:15:20 2017
New Revision: 326698
URL: https://svnweb.freebsd.org/changeset/base/326698

Log:
  at(1): annotate some intended switch-case fallthroughs
  
  Reported by:  Coverity
  CID:          1008191
  MFC after:    3 weeks
  Sponsored by: Spectra Logic Corp

Modified:
  head/usr.bin/at/parsetime.c

Modified: head/usr.bin/at/parsetime.c
==============================================================================
--- head/usr.bin/at/parsetime.c Fri Dec  8 16:25:05 2017        (r326697)
+++ head/usr.bin/at/parsetime.c Fri Dec  8 17:15:20 2017        (r326698)
@@ -617,6 +617,7 @@ parsetime(int argc, char **argv)
            }
            /* now is optional prefix for PLUS tree */
            expect(PLUS);
+           /* FALLTHROUGH */
     case PLUS:
            plus(&runtime);
            break;
@@ -641,8 +642,10 @@ parsetime(int argc, char **argv)
             */
     case TEATIME:
            hr += 4;
+           /* FALLTHROUGH */
     case NOON:
            hr += 12;
+           /* FALLTHROUGH */
     case MIDNIGHT:
            if (runtime.tm_hour >= hr) {
                runtime.tm_mday++;
_______________________________________________
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to