mirror of
https://github.com/u-boot/u-boot.git
synced 2025-04-22 12:54:37 +00:00
lib: missing fallthrough comment in vsnprintf_internal()
When a case statement intentionally falls through we should add a comment. Cf. -Wimplicit-fallthrough Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
This commit is contained in:
parent
686e9ef605
commit
9ee32a7876
1 changed files with 3 additions and 0 deletions
|
@ -674,6 +674,7 @@ repeat:
|
||||||
|
|
||||||
case 'x':
|
case 'x':
|
||||||
flags |= SMALL;
|
flags |= SMALL;
|
||||||
|
/* fallthrough */
|
||||||
case 'X':
|
case 'X':
|
||||||
base = 16;
|
base = 16;
|
||||||
break;
|
break;
|
||||||
|
@ -681,8 +682,10 @@ repeat:
|
||||||
case 'd':
|
case 'd':
|
||||||
if (fmt[1] == 'E')
|
if (fmt[1] == 'E')
|
||||||
flags |= ERRSTR;
|
flags |= ERRSTR;
|
||||||
|
/* fallthrough */
|
||||||
case 'i':
|
case 'i':
|
||||||
flags |= SIGN;
|
flags |= SIGN;
|
||||||
|
/* fallthrough */
|
||||||
case 'u':
|
case 'u':
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue