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
|
@ -572,7 +572,7 @@ static void out_pattern(Sfio_t *iop, register const char *cp, int n)
|
|||
case '\\':
|
||||
if (!(c = *++cp))
|
||||
c = '\\';
|
||||
/*FALLTHROUGH*/
|
||||
/* FALLTHROUGH */
|
||||
case ' ':
|
||||
case '<': case '>': case ';':
|
||||
case '$': case '`': case '\t':
|
||||
|
@ -1558,6 +1558,7 @@ int sh_exec(register const Shnode_t *t, int flags)
|
|||
break;
|
||||
}
|
||||
}
|
||||
/* FALLTHROUGH */
|
||||
case TFORK:
|
||||
{
|
||||
register pid_t parent;
|
||||
|
@ -1821,6 +1822,7 @@ int sh_exec(register const Shnode_t *t, int flags)
|
|||
sh_done(shp,0);
|
||||
}
|
||||
}
|
||||
/* FALLTHROUGH */
|
||||
|
||||
case TSETIO:
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue