9146 libdtrace: this statement may fall through

Review Request #879 — Created Feb. 20, 2018 and submitted

tsoome
illumos-gate
9146
b2a72ce...
general
../common/dt_parser.c
../common/dt_parser.c: In function 'dt_node_decl':
../common/dt_parser.c:1467:3: error: this statement may fall through [-Werror=implicit-fallthrough=]
   xyerror(D_DECL_BADCLASS, "specified storage class not "
   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
       "appropriate in D\n");
       ~~~~~~~~~~~~~~~~~~~~~
../common/dt_parser.c:1471:2: note: here
  case DT_DC_EXTERN: {
  ^~~~
../common/dt_parser.c: In function 'dt_cook_op2':
../common/dt_parser.c:3603:3: error: this statement may fall through [-Werror=implicit-fallthrough=]
   xyerror(D_OP_INCOMPAT,
   ^~~~~~~~~~~~~~~~~~~~~~
       "operands have incompatible types: \"%s\" %s \"%s\"\n",
       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
       dt_node_type_name(lp, n1, sizeof (n1)), opstr(op),
       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
       dt_node_type_name(rp, n2, sizeof (n2)));
       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../common/dt_parser.c:3609:2: note: here
  case DT_TOK_ADD_EQ:
  ^~~~
cc1: all warnings being treated as errors


tsoome
citrus
  1. Ship It!
  2. 
      
gwr
  1. Ship It!
  2. 
      
tsoome
Review request changed

Status: Closed (submitted)

Loading...