Print this page
11528 Makefile.noget can get gone
11529 Use -Wno-maybe-initialized

Split Close
Expand all
Collapse all
          --- old/usr/src/Makefile.master
          +++ new/usr/src/Makefile.master
↓ open down ↓ 452 lines elided ↑ open up ↑
 453  453  
 454  454  CERRWARN += -_gcc=-Wno-missing-braces
 455  455  CERRWARN += -_gcc=-Wno-sign-compare
 456  456  CERRWARN += -_gcc=-Wno-unknown-pragmas
 457  457  CERRWARN += -_gcc=-Wno-unused-parameter
 458  458  CERRWARN += -_gcc=-Wno-missing-field-initializers
 459  459  
 460  460  # Unfortunately, this option can misfire very easily and unfixably.
 461  461  CERRWARN +=     -_gcc=-Wno-array-bounds
 462  462  
      463 +# gcc4 lacks -Wno-maybe-uninitialized
      464 +CNOWARN_UNINIT = -_gcc4=-Wno-uninitialized \
      465 +    -_gcc7=-Wno-maybe-uninitialized \
      466 +    -_gcc8=-Wno-maybe-uninitialized
 463  467  
 464  468  CERRWARN += -_smatch=-p=illumos_user
 465  469  include $(SRC)/Makefile.smatch
 466  470  
 467  471  #
 468  472  # turn warnings into errors (C++)
 469  473  CCERRWARN=              -xwe
 470  474  
 471  475  # C standard.  Keep Studio flags until we get rid of lint.
 472  476  CSTD_GNU89=     -xc99=%none
↓ open down ↓ 768 lines elided ↑ open up ↑
1241 1245  .SUFFIXES: .x .xml .check .xmlchk
1242 1246  
1243 1247  .h.check:
1244 1248          $(DOT_H_CHECK)
1245 1249  
1246 1250  .x.check:
1247 1251          $(DOT_X_CHECK)
1248 1252  
1249 1253  .xml.xmlchk:
1250 1254          $(MANIFEST_CHECK)
1251      -
1252      -#
1253      -# Include rules to render automated sccs get rules "safe".
1254      -#
1255      -include $(SRC)/Makefile.noget
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX