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
|
|
@ -66,12 +66,19 @@ Sflong_t v; /* the value to be written */
|
|||
{ switch(n)
|
||||
{
|
||||
case 8 : *ps++ = *s++;
|
||||
/* FALLTHROUGH */
|
||||
case 7 : *ps++ = *s++;
|
||||
/* FALLTHROUGH */
|
||||
case 6 : *ps++ = *s++;
|
||||
/* FALLTHROUGH */
|
||||
case 5 : *ps++ = *s++;
|
||||
/* FALLTHROUGH */
|
||||
case 4 : *ps++ = *s++;
|
||||
/* FALLTHROUGH */
|
||||
case 3 : *ps++ = *s++;
|
||||
/* FALLTHROUGH */
|
||||
case 2 : *ps++ = *s++;
|
||||
/* FALLTHROUGH */
|
||||
case 1 : *ps++ = *s++;
|
||||
}
|
||||
f->next = ps;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue