at(1): annotate some intended switch-case fallthroughs

Reported by:	Coverity
CID:		1008191
MFC after:	3 weeks
Sponsored by:	Spectra Logic Corp
This commit is contained in:
asomers 2017-12-08 17:15:20 +00:00
parent 807d9a1070
commit 901be27a51

View File

@ -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++;