Print this page
10063 basic support for smatch
10153 checkpaths shouldn't check packaging exceptions

Split Close
Expand all
Collapse all
          --- old/usr/src/Makefile.master
          +++ new/usr/src/Makefile.master
↓ open down ↓ 20 lines elided ↑ open up ↑
  21   21  
  22   22  #
  23   23  # Copyright (c) 1989, 2010, Oracle and/or its affiliates. All rights reserved.
  24   24  # Copyright (c) 2012 by Delphix. All rights reserved.
  25   25  # Copyright 2014 Garrett D'Amore <garrett@damore.org>
  26   26  # Copyright 2015, OmniTI Computer Consulting, Inc. All rights reserved.
  27   27  # Copyright 2015 Gary Mills
  28   28  # Copyright 2015 Igor Kozhukhov <ikozhukhov@gmail.com>
  29   29  # Copyright 2016 Toomas Soome <tsoome@me.com>
  30   30  # Copyright 2018 OmniOS Community Edition (OmniOSce) Association.
       31 +# Copyright (c) 2018, Joyent, Inc.
  31   32  #
  32   33  
  33   34  #
  34   35  # Makefile.master, global definitions for system source
  35   36  #
  36   37  ROOT=           /proto
  37   38  
  38   39  #
  39   40  # Adjunct root, containing an additional proto area to be used for headers
  40   41  # and libraries.
↓ open down ↓ 387 lines elided ↑ open up ↑
 428  429  CERRWARN += -_gcc=-Wno-missing-field-initializers
 429  430  
 430  431  # Unfortunately, this option can misfire very easily and unfixably.
 431  432  CERRWARN +=     -_gcc=-Wno-array-bounds
 432  433  
 433  434  # DEBUG v. -nd make for frequent unused variables, empty conditions, etc. in
 434  435  # -nd builds
 435  436  $(RELEASE_BUILD)CERRWARN += -_gcc=-Wno-unused
 436  437  $(RELEASE_BUILD)CERRWARN += -_gcc=-Wno-empty-body
 437  438  
      439 +CERRWARN += -_smatch=-p=illumos_user
      440 +include $(SRC)/Makefile.smatch
      441 +
 438  442  #
 439  443  # turn warnings into errors (C++)
 440  444  CCERRWARN=              -xwe
 441  445  
 442  446  # C standard.  Keep Studio flags until we get rid of lint.
 443  447  CSTD_GNU89=     -xc99=%none
 444  448  CSTD_GNU99=     -xc99=%all
 445  449  CSTD=           $(CSTD_GNU89)
 446  450  C99LMODE=       $(CSTD:-xc99%=-Xc99%)
 447  451  
↓ open down ↓ 753 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX