Project

General

Profile

Actions

Bug #12952

closed

ms: this statement may fall through

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

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

100%

Estimated time:
Difficulty:
Medium
Tags:
Gerrit CR:

Description

Build errors on SPARC:

    ../../sun/io/ms.c: In function 'msrput':
    ../../sun/io/ms.c:925:6: error: this statement may fall through [-Werror=implicit-fallthrough=]
       if (*mp->b_rptr & FLUSHR)
          ^
    ../../sun/io/ms.c:928:2: note: here
      default:
      ^~~~~~~
    ../../sun/io/ms.c: In function 'mswput':
    ../../sun/io/ms.c:707:6: error: this statement may fall through [-Werror=implicit-fallthrough=]
       if (*mp->b_rptr & FLUSHR)
          ^
    ../../sun/io/ms.c:710:2: note: here
      default:
      ^~~~~~~
    cc1: all warnings being treated as errors

Testing done: build/install/boot

Actions

Also available in: Atom PDF