Skip to content

Commit

Permalink
Suppress future -Wimplicit-fallthrough=3 warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
TuxSH committed Jul 14, 2017
1 parent 3d8f62d commit ba14efe
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions source/fmt.c
Expand Up @@ -263,15 +263,15 @@ u32 vsprintf(char *buf, const char *fmt, va_list args)
//Integer number formats - set up the flags and "break"
case 'X':
flags |= UPPERCASE;

//Falls through
case 'x':
isHex = true;
break;

case 'd':
case 'i':
flags |= SIGN;

//Falls through
case 'u':
isHex = false;
break;
Expand Down
4 changes: 2 additions & 2 deletions sysmodules/rosalina/source/fmt.c
Expand Up @@ -259,15 +259,15 @@ int vsprintf(char *buf, const char *fmt, va_list args)
//Integer number formats - set up the flags and "break"
case 'X':
flags |= UPPERCASE;

//Falls through
case 'x':
isHex = true;
break;

case 'd':
case 'i':
flags |= SIGN;

//Falls through
case 'u':
isHex = false;
break;
Expand Down

0 comments on commit ba14efe

Please sign in to comment.