Project

General

Profile

Bug #9134

libnsl: this statement may fall through

Added by Toomas Soome over 1 year ago. Updated over 1 year ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
lib - userland libraries
Start date:
2018-02-19
Due date:
% Done:

100%

Estimated time:
Difficulty:
Bite-size
Tags:

Description

Issue from gcc 7 build:

    ../nss/inet_matchaddr.c: In function 'inet_matchaddr':
    ../nss/inet_matchaddr.c:70:17: error: this statement may fall through [-Werror=i
    mplicit-fallthrough=]
      case AF_INET6: {
                     ^
    ../nss/inet_matchaddr.c:125:2: note: here
      case AF_INET: {
      ^~~~
    ../rpc/svc_vc.c: In function 'do_accept':
    ../rpc/svc_vc.c:926:7: error: this statement may fall through [-Werror=implicit-
    fallthrough=]
        if (t_getstate(srcfd) == T_IDLE) {
           ^
    ../rpc/svc_vc.c:934:3: note: here
       default:
       ^~~~~~~
    cc1: all warnings being treated as errors

History

#1

Updated by Electric Monk over 1 year ago

  • % Done changed from 90 to 100
  • Status changed from In Progress to Closed

git commit a69e76ca280a5227e229566b1e076da8f32193e0

commit  a69e76ca280a5227e229566b1e076da8f32193e0
Author: Toomas Soome <tsoome@me.com>
Date:   2018-02-21T00:57:13.000Z

    9134 libnsl: this statement may fall through
    Reviewed by: C Fraire <cfraire@me.com>
    Reviewed by: Andy Stormont <astormont@racktopsystems.com>
    Approved by: Dan McDonald <danmcd@joyent.com>

Also available in: Atom PDF