From 901be27a514cf4f04c23be00ab7a6fc2e217aae7 Mon Sep 17 00:00:00 2001 From: asomers Date: Fri, 8 Dec 2017 17:15:20 +0000 Subject: [PATCH] at(1): annotate some intended switch-case fallthroughs Reported by: Coverity CID: 1008191 MFC after: 3 weeks Sponsored by: Spectra Logic Corp --- usr.bin/at/parsetime.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/usr.bin/at/parsetime.c b/usr.bin/at/parsetime.c index e91a6947357b..97f533c00c9a 100644 --- a/usr.bin/at/parsetime.c +++ b/usr.bin/at/parsetime.c @@ -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++;