11565 loader: this statement may fall through

Review Request #2227 - Created Aug. 16, 2019 and submitted

Information
Toomas Soome
illumos-gate
11565
9c2d1cb...
Reviewers
general
/code/illumos-gate/usr/src/boot/lib/libstand/printf.c: In function 'kvprintf':
/code/illumos-gate/usr/src/boot/lib/libstand/printf.c:319:7: error: this statement may fall through [-Werror=implicit-fallthrough=]
    if (!dot) {
       ^
/code/illumos-gate/usr/src/boot/lib/libstand/printf.c:323:3: note: here
   case '1': case '2': case '3': case '4':
   ^~~~
/code/illumos-gate/usr/src/boot/lib/libstand/printf.c:482:10: error: this statement may fall through [-Werror=implicit-fallthrough=]
    upper = 1;
    ~~~~~~^~~
/code/illumos-gate/usr/src/boot/lib/libstand/printf.c:483:3: note: here
   case 'x':
   ^~~~
cc1: all warnings being treated as errors

  
Andrew Stormont
Robert Mustacchi
Toomas Soome
Review request changed

Status: Closed (submitted)

Loading...