1
0
mirror of https://github.com/simh/simh.git synced 2026-02-26 00:34:36 +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

@@ -1,6 +1,6 @@
/* sigma_mt.c: Sigma 732X 9-track magnetic tape
Copyright (c) 2007-2008, Robert M. Supnik
Copyright (c) 2007-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"),
@@ -25,6 +25,8 @@
mt 7320 and 7322/7323 magnetic tape
13-Mar-17 RMS Annotated fall through in switch
Magnetic tapes are represented as a series of variable records
of the form:
@@ -475,7 +477,8 @@ switch (st) {
case MTSE_FMT: /* illegal fmt */
case MTSE_UNATT: /* not attached */
case MTSE_WRP: /* write protect */
chan_set_chf (mt_dib.dva, CHF_XMME);
chan_set_chf (mt_dib.dva, CHF_XMME); /* set err */
/* fall through */
case MTSE_OK: /* no error */
chan_uen (mt_dib.dva); /* uend */
return SCPE_IERR;