Date: Thu, 11 Jan 2018 23:59:27 +0000 (UTC) From: Alan Somers <asomers@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-11@freebsd.org Subject: svn commit: r327852 - stable/11/usr.bin/at Message-ID: <201801112359.w0BNxRjx003583@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: asomers Date: Thu Jan 11 23:59:27 2018 New Revision: 327852 URL: https://svnweb.freebsd.org/changeset/base/327852 Log: MFC r326698: at(1): annotate some intended switch-case fallthroughs Reported by: Coverity CID: 1008191 Sponsored by: Spectra Logic Corp Modified: stable/11/usr.bin/at/parsetime.c Directory Properties: stable/11/ (props changed) Modified: stable/11/usr.bin/at/parsetime.c ============================================================================== --- stable/11/usr.bin/at/parsetime.c Thu Jan 11 23:58:41 2018 (r327851) +++ stable/11/usr.bin/at/parsetime.c Thu Jan 11 23:59:27 2018 (r327852) @@ -614,6 +614,7 @@ parsetime(int argc, char **argv) } /* now is optional prefix for PLUS tree */ expect(PLUS); + /* FALLTHROUGH */ case PLUS: plus(&runtime); break; @@ -638,8 +639,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?201801112359.w0BNxRjx003583>