mirror of
git://git.code.sf.net/p/cdesktopenv/code
synced 2025-03-09 15:50:02 +00:00
Fix many GCC -Wimplicit-fallthrough warnings (#243)
This commit adds '/* FALLTHROUGH */' comments to fix many GCC warnings when compiling with -Wimplicit-fallthrough. Additionally, the existing fallthrough comments have been changed for consistency.
This commit is contained in:
parent
f30da49564
commit
ed478ab7e3
73 changed files with 271 additions and 158 deletions
|
|
@ -501,7 +501,7 @@ static Shnode_t *sh_cmd(Lex_t *lexp, register int sym, int flag)
|
|||
{
|
||||
case COOPSYM: /* set up a cooperating process */
|
||||
type |= (FPIN|FPOU|FPCL|FCOOP);
|
||||
/* FALL THRU */
|
||||
/* FALLTHROUGH */
|
||||
case '&':
|
||||
if(left)
|
||||
{
|
||||
|
|
@ -510,7 +510,7 @@ static Shnode_t *sh_cmd(Lex_t *lexp, register int sym, int flag)
|
|||
left = left->par.partre;
|
||||
left = makeparent(lexp,TFORK|type, left);
|
||||
}
|
||||
/* FALL THRU */
|
||||
/* FALLTHROUGH */
|
||||
case ';':
|
||||
if(!left)
|
||||
sh_syntax(lexp);
|
||||
|
|
@ -520,6 +520,7 @@ static Shnode_t *sh_cmd(Lex_t *lexp, register int sym, int flag)
|
|||
case EOFSYM:
|
||||
if(sym==NL)
|
||||
break;
|
||||
/* FALLTHROUGH */
|
||||
default:
|
||||
if(sym && sym!=lexp->token)
|
||||
{
|
||||
|
|
@ -1304,7 +1305,7 @@ static Shnode_t *item(Lex_t *lexp,int flag)
|
|||
default:
|
||||
if(io==0)
|
||||
return(0);
|
||||
|
||||
/* FALLTHROUGH */
|
||||
case ';':
|
||||
if(io==0)
|
||||
{
|
||||
|
|
@ -1314,6 +1315,7 @@ static Shnode_t *item(Lex_t *lexp,int flag)
|
|||
sh_syntax(lexp);
|
||||
showme = FSHOWME;
|
||||
}
|
||||
/* FALLTHROUGH */
|
||||
/* simple command */
|
||||
case 0:
|
||||
t = (Shnode_t*)simple(lexp,flag,io);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue