Project

General

Profile

Actions

Bug #9901

closed

ip: rts_wput_other: this statement may fall through

Added by Toomas Soome almost 5 years ago. Updated almost 5 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
driver - device drivers
Start date:
2018-10-16
Due date:
% Done:

100%

Estimated time:
Difficulty:
Bite-size
Tags:
Gerrit CR:
External Bug:

Description

Build with gcc 8 did reveal this issue:

    ../../common/inet/ip/rts.c: In function 'rts_wput_other':
    ../../common/inet/ip/rts.c:1051:3: error: this statement may fall through [-Werror=implicit-fallthrough=]
       switch (iocp->ioc_cmd) {
       ^~~~~~
    ../../common/inet/ip/rts.c:1066:2: note: here
      case M_IOCDATA:
      ^~~~
    cc1: all warnings being treated as errors

Apparently this is about missing break statement, and the problem is hidden by rts_wput_iocdata() where we end up calling ip_wput_nondata() anyhow. Nevertheless, we should break from switch and not fall through the M_IOCDATA case.


Related issues

Related to illumos gate - Bug #9903: qinfo: add typed membersClosedToomas Soome2018-10-16

Actions
Actions #1

Updated by Toomas Soome almost 5 years ago

  • Related to Bug #9903: qinfo: add typed members added
Actions #2

Updated by Electric Monk almost 5 years ago

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

git commit a4ea78ea169e38e19fc3f41157c40f09341f4144

commit  a4ea78ea169e38e19fc3f41157c40f09341f4144
Author: Toomas Soome <tsoome@me.com>
Date:   2018-11-08T21:55:13.000Z

    9901 ip: rts_wput_other: this statement may fall through
    Reviewed by: Yuri Pankov <yuripv@yuripv.net>
    Reviewed by: Dan McDonald <danmcd@joyent.com>
    Approved by: Garrett D'Amore <garrett@damore.org>

Actions

Also available in: Atom PDF