Project

General

Profile

Actions

Bug #9350

closed

ypcmd: this statement may fall through

Added by Toomas Soome over 4 years ago. Updated over 4 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
cmd - userland programs
Start date:
2018-03-25
Due date:
% Done:

100%

Estimated time:
Difficulty:
Medium
Tags:
Gerrit CR:

Description

issue found by gcc 7 build:

    rpc.ypupdated.c:100:13: error: this statement may fall through [-Werror=implicit-fallthrough=]
       } else if (strcmp(argv[1], "-s") == 0) {
                 ^
    rpc.ypupdated.c:104:2: note: here
      default:
      ^~~~~~~
    rpc.ypupdated.c: In function 'ypupdate_prog':
    rpc.ypupdated.c:241:6: error: this statement may fall through [-Werror=implicit-fallthrough=]
       if (insecure) {
          ^
    rpc.ypupdated.c:254:2: note: here
      default:
      ^~~~~~~

    openchild.c:111:3: error: this statement may fall through [-Werror=implicit-fallthrough=]
       exit(1);
       ^~~~~~~
    openchild.c:113:2: note: here
      default:
      ^~~~~~~

    cc1: all warnings being treated as errors

Actions

Also available in: Atom PDF