scst: Partially revert r9166

Apparently the RHEL 8.2 gcc compiler reports an error if
__attribute__((fallthrough)) is used outside a switch statement. Hence this
patch that converts some of these annotations back into comments.

Reported-by: Rob Turk <robtu@rtist.nl>


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@9167 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
Bart Van Assche
2020-09-19 00:28:44 +00:00
parent 186798cec4
commit 741d1d38dc
2 changed files with 2 additions and 2 deletions

View File

@@ -1289,7 +1289,7 @@ out:
out_nomem:
if (ucmd->cmd != NULL)
scst_set_busy(ucmd->cmd);
fallthrough;
/* fall through */
out_err:
if (ucmd->cmd != NULL)

View File

@@ -1358,7 +1358,7 @@ set_res:
TRACE_DBG_FLAG(TRACE_DEBUG|TRACE_MINOR, "Atomic context and "
"non-WRITE data direction, rescheduling (cmd %p)", cmd);
res = SCST_CMD_STATE_RES_NEED_THREAD;
fallthrough;
/* fall through */
}
#endif