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
|
|
@ -166,7 +166,7 @@ int b_test(int argc, char *argv[],Shbltin_t *context)
|
|||
if(!not)
|
||||
break;
|
||||
argv++;
|
||||
/* fall through */
|
||||
/* FALLTHROUGH */
|
||||
case 4:
|
||||
{
|
||||
register int op = sh_lookup(cp=argv[2],shtab_testops);
|
||||
|
|
@ -434,6 +434,7 @@ int test_unop(Shell_t *shp,register int op,register const char *arg)
|
|||
return(*arg == 0);
|
||||
case 's':
|
||||
sfsync(sfstdout);
|
||||
/* FALLTHROUGH */
|
||||
case 'O':
|
||||
case 'G':
|
||||
if(*arg==0 || test_stat(arg,&statb)<0)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue