9304 ftp: this statement may fall through

Review Request #967 — Created March 18, 2018 and submitted

tsoome
illumos-gate
9304
5026c07...
general
cmds.c: In function 'domap':
cmds.c:1911:7: error: this statement may fall through [-Werror=implicit-fallthrough=]
    if (*cp2 >= '1' && *cp2 <= '9') {
       ^
cmds.c:1942:3: note: here
   default:
   ^~~~~~~
cmds.c:2057:7: error: this statement may fall through [-Werror=implicit-fallthrough=]
    if (isdigit(*(cp2 + 1))) {
       ^
cmds.c:2075:3: note: here
   default:
   ^~~~~~~

domacro.c:117:8: error: this statement may fall through [-Werror=implicit-fallthrough=]
     if (*(cp1+1) == 'i') {
        ^
domacro.c:127:4: note: here
    default:
    ^~~~~~~

cc1: all warnings being treated as errors


wiedi
  1. Ship It!
  2. 
      
seeemef@mac.com
  1. Ship It!
  2. 
      
tsoome
Review request changed

Status: Closed (submitted)

Loading...