Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 8 Dec 2017 17:15:21 +0000 (UTC)
From:      Alan Somers <asomers@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r326698 - head/usr.bin/at
Message-ID:  <201712081715.vB8HFLDo026245@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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++;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201712081715.vB8HFLDo026245>