Print this page
10804 Enable unused warnings outside of uts
Reviewed by: Andy Stormont <astormont@racktopsystems.com>
Reviewed by: Toomas Soome <tsoome@me.com>

Split Close
Expand all
Collapse all
          --- old/usr/src/Makefile.master
          +++ new/usr/src/Makefile.master
↓ open down ↓ 448 lines elided ↑ open up ↑
 449  449  
 450  450  CERRWARN += -_gcc=-Wno-missing-braces
 451  451  CERRWARN += -_gcc=-Wno-sign-compare
 452  452  CERRWARN += -_gcc=-Wno-unknown-pragmas
 453  453  CERRWARN += -_gcc=-Wno-unused-parameter
 454  454  CERRWARN += -_gcc=-Wno-missing-field-initializers
 455  455  
 456  456  # Unfortunately, this option can misfire very easily and unfixably.
 457  457  CERRWARN +=     -_gcc=-Wno-array-bounds
 458  458  
 459      -# DEBUG v. -nd make for frequent unused variables, empty conditions, etc. in
 460      -# -nd builds
 461      -$(RELEASE_BUILD)CERRWARN += -_gcc=-Wno-unused
 462      -$(RELEASE_BUILD)CERRWARN += -_gcc=-Wno-empty-body
 463  459  
 464  460  CERRWARN += -_smatch=-p=illumos_user
 465  461  include $(SRC)/Makefile.smatch
 466  462  
 467  463  #
 468  464  # turn warnings into errors (C++)
 469  465  CCERRWARN=              -xwe
 470  466  
 471  467  # C standard.  Keep Studio flags until we get rid of lint.
 472  468  CSTD_GNU89=     -xc99=%none
↓ open down ↓ 778 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX