1
0
mirror of https://github.com/simh/simh.git synced 2026-01-25 19:56:25 +00:00

GRI, H316, I7094, NOVA, SDS, sigma: Annotate switch case fall through (COVERITY)

This commit is contained in:
Bob Supnik
2017-03-13 10:44:51 -07:00
committed by Mark Pizzolato
parent 6333555947
commit fa62a00fd0
8 changed files with 34 additions and 15 deletions

View File

@@ -22,6 +22,8 @@
Except as contained in this notice, the name of the author shall not be
used in advertising or otherwise to promote the sale, use or other dealings
in this Software without prior written authorization from the author.
13-Mar-17 RMS Annotated fall through in switch
*/
/***********************************************************************
*
@@ -165,7 +167,7 @@ binloader (FILE *fd, const char *file, int loadpt)
case RELADDR_TAG:
ldata = ldata + loadaddr;
/* fall through */
case ABSDATA_TAG:
STORE:
#ifdef DEBUGLOADER
@@ -177,6 +179,7 @@ binloader (FILE *fd, const char *file, int loadpt)
case ABSXFER_TAG:
transfer = TRUE;
/* fall through */
case ABSENTRY_TAG:
PC = (uint32) ldata & AMASK;
#ifdef DEBUGLOADER
@@ -188,6 +191,7 @@ binloader (FILE *fd, const char *file, int loadpt)
case RELXFER_TAG:
transfer = TRUE;
/* fall through */
case RELENTRY_TAG:
ldata = (ldata + loadaddr) & AMASK;
PC = (uint32) ldata & AMASK;

View File

@@ -1,6 +1,6 @@
/* i7094_cd.c: IBM 711/721 card reader/punch
Copyright (c) 2003-2012, Robert M. Supnik
Copyright (c) 2003-2017, Robert M. Supnik
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files (the "Software"),
@@ -26,6 +26,7 @@
cdr 711 card reader
cdp 721 card punch
13-Mar-17 RMS Annotated fall through in switch
19-Mar-12 RMS Fixed declaration of sim_switches (Mark Pizzolato)
19-Jan-07 RMS Added UNIT_TEXT
13-Jul-06 RMS Fixed problem with 80 column full cards
@@ -238,7 +239,7 @@ switch (cdr_sta) { /* case on state */
cdr_bbuf[bufw] |= dat;
}
}
/* fall through */
case CDS_DATA: /* data state */
dat = cdr_bbuf[cdr_bptr++]; /* get next word */
if (cdr_bptr >= CD_BINLNT) { /* last word? */