Print this page
10703 smatch unreachable code checking needs reworking
Reviewed by: Toomas Soome <tsoome@me.com>
Reviewed by: Yuri Pankov <yuri.pankov@nexenta.com>

Split Close
Expand all
Collapse all
          --- old/usr/src/Makefile.smatch
          +++ new/usr/src/Makefile.smatch
↓ open down ↓ 8 lines elided ↑ open up ↑
   9    9  # http://www.illumos.org/license/CDDL.
  10   10  #
  11   11  # Copyright 2019 Joyent, Inc.
  12   12  #
  13   13  
  14   14  #
  15   15  # smatch/sparse checks we always disable, due to too many false positives (or
  16   16  # simply too much legacy).
  17   17  #
  18   18  
  19      -SMATCH_ARGS = --disable=uninitialized,check_check_deref,unreachable
       19 +SMATCH_ARGS = --disable=uninitialized,check_check_deref
  20   20  
  21   21  # VLAs are OK by us
  22   22  SMATCH_ARGS += -Wno-vla
  23   23  # don't care
  24   24  SMATCH_ARGS += -Wno-one-bit-signed-bitfield
  25   25  # there are lots of "extern void myfunc() { ... }" around
  26   26  SMATCH_ARGS += -Wno-external-function-has-definition
  27   27  # we have lots of legacy "void foo();" in headers
  28   28  SMATCH_ARGS += -Wno-old-style-definition
  29   29  SMATCH_ARGS += -Wno-strict-prototypes
↓ open down ↓ 12 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX