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


 443 #
 444 XFFLAG=                 -xF=%all
 445 XESS=                   -xs
 446 XSTRCONST=              -xstrconst
 447 
 448 #
 449 # turn warnings into errors (C)
 450 CERRWARN = -errtags=yes -errwarn=%all
 451 CERRWARN += -erroff=E_EMPTY_TRANSLATION_UNIT
 452 CERRWARN += -erroff=E_STATEMENT_NOT_REACHED
 453 
 454 CERRWARN += -_gcc=-Wno-missing-braces
 455 CERRWARN += -_gcc=-Wno-sign-compare
 456 CERRWARN += -_gcc=-Wno-unknown-pragmas
 457 CERRWARN += -_gcc=-Wno-unused-parameter
 458 CERRWARN += -_gcc=-Wno-missing-field-initializers
 459 
 460 # Unfortunately, this option can misfire very easily and unfixably.
 461 CERRWARN +=     -_gcc=-Wno-array-bounds
 462 




 463 
 464 CERRWARN += -_smatch=-p=illumos_user
 465 include $(SRC)/Makefile.smatch
 466 
 467 #
 468 # turn warnings into errors (C++)
 469 CCERRWARN=              -xwe
 470 
 471 # C standard.  Keep Studio flags until we get rid of lint.
 472 CSTD_GNU89=     -xc99=%none
 473 CSTD_GNU99=     -xc99=%all
 474 CSTD=           $(CSTD_GNU89)
 475 C99LMODE=       $(CSTD:-xc99%=-Xc99%)
 476 
 477 # In most places, assignments to these macros should be appended with +=
 478 # (CPPFLAGS.first allows values to be prepended to CPPFLAGS).
 479 sparc_CFLAGS=   $(sparc_XARCH) $(CCSTATICSYM)
 480 sparcv9_CFLAGS= $(sparcv9_XARCH) -dalign $(CCVERBOSE) $(V9ABIWARN) $(CCREGSYM) \
 481                 $(CCSTATICSYM)
 482 i386_CFLAGS=    $(i386_XARCH)


1231 
1232 .l.po:
1233         $(LEX) $<
1234         $(CPPFORPO) lex.yy.c  > $<.i
1235         $(BUILD.po)
1236         $(RM) lex.yy.c
1237 
1238 #
1239 # Rules to perform stylistic checks
1240 #
1241 .SUFFIXES: .x .xml .check .xmlchk
1242 
1243 .h.check:
1244         $(DOT_H_CHECK)
1245 
1246 .x.check:
1247         $(DOT_X_CHECK)
1248 
1249 .xml.xmlchk:
1250         $(MANIFEST_CHECK)
1251 
1252 #
1253 # Include rules to render automated sccs get rules "safe".
1254 #
1255 include $(SRC)/Makefile.noget


 443 #
 444 XFFLAG=                 -xF=%all
 445 XESS=                   -xs
 446 XSTRCONST=              -xstrconst
 447 
 448 #
 449 # turn warnings into errors (C)
 450 CERRWARN = -errtags=yes -errwarn=%all
 451 CERRWARN += -erroff=E_EMPTY_TRANSLATION_UNIT
 452 CERRWARN += -erroff=E_STATEMENT_NOT_REACHED
 453 
 454 CERRWARN += -_gcc=-Wno-missing-braces
 455 CERRWARN += -_gcc=-Wno-sign-compare
 456 CERRWARN += -_gcc=-Wno-unknown-pragmas
 457 CERRWARN += -_gcc=-Wno-unused-parameter
 458 CERRWARN += -_gcc=-Wno-missing-field-initializers
 459 
 460 # Unfortunately, this option can misfire very easily and unfixably.
 461 CERRWARN +=     -_gcc=-Wno-array-bounds
 462 
 463 # gcc4 lacks -Wno-maybe-uninitialized
 464 CNOWARN_UNINIT = -_gcc4=-Wno-uninitialized \
 465     -_gcc7=-Wno-maybe-uninitialized \
 466     -_gcc8=-Wno-maybe-uninitialized
 467 
 468 CERRWARN += -_smatch=-p=illumos_user
 469 include $(SRC)/Makefile.smatch
 470 
 471 #
 472 # turn warnings into errors (C++)
 473 CCERRWARN=              -xwe
 474 
 475 # C standard.  Keep Studio flags until we get rid of lint.
 476 CSTD_GNU89=     -xc99=%none
 477 CSTD_GNU99=     -xc99=%all
 478 CSTD=           $(CSTD_GNU89)
 479 C99LMODE=       $(CSTD:-xc99%=-Xc99%)
 480 
 481 # In most places, assignments to these macros should be appended with +=
 482 # (CPPFLAGS.first allows values to be prepended to CPPFLAGS).
 483 sparc_CFLAGS=   $(sparc_XARCH) $(CCSTATICSYM)
 484 sparcv9_CFLAGS= $(sparcv9_XARCH) -dalign $(CCVERBOSE) $(V9ABIWARN) $(CCREGSYM) \
 485                 $(CCSTATICSYM)
 486 i386_CFLAGS=    $(i386_XARCH)


1235 
1236 .l.po:
1237         $(LEX) $<
1238         $(CPPFORPO) lex.yy.c  > $<.i
1239         $(BUILD.po)
1240         $(RM) lex.yy.c
1241 
1242 #
1243 # Rules to perform stylistic checks
1244 #
1245 .SUFFIXES: .x .xml .check .xmlchk
1246 
1247 .h.check:
1248         $(DOT_H_CHECK)
1249 
1250 .x.check:
1251         $(DOT_X_CHECK)
1252 
1253 .xml.xmlchk:
1254         $(MANIFEST_CHECK)