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


 205 CPPFLAGS        = $(ALWAYS_DEFS) $(ALL_DEFS) $(CONFIG_DEFS) \
 206                    $(INCLUDE_PATH) $(EXTRA_OPTIONS)
 207 ASFLAGS         += -P
 208 AS_CPPFLAGS     = $(ALWAYS_DEFS) $(ALL_DEFS) $(CONFIG_DEFS) $(AS_DEFS) \
 209                    $(AS_INC_PATH) $(EXTRA_OPTIONS)
 210 
 211 #
 212 #       Make it (relatively) easy to share compilation options between
 213 #       all kernel implementations.
 214 #
 215 
 216 # Override the default, the kernel is squeaky clean
 217 CERRWARN = -errtags=yes -errwarn=%all
 218 
 219 CERRWARN += -_gcc=-Wno-missing-braces
 220 CERRWARN += -_gcc=-Wno-sign-compare
 221 CERRWARN += -_gcc=-Wno-unknown-pragmas
 222 CERRWARN += -_gcc=-Wno-unused-parameter
 223 CERRWARN += -_gcc=-Wno-missing-field-initializers
 224 





 225 # DEBUG v. -nd make for frequent unused variables, empty conditions, etc. in
 226 # -nd builds
 227 $(RELEASE_BUILD)CERRWARN += -_gcc=-Wno-unused
 228 $(RELEASE_BUILD)CERRWARN += -_gcc=-Wno-empty-body
 229 
 230 CERRWARN += -_smatch=-p=illumos_kernel
 231 include $(SRC)/Makefile.smatch
 232 
 233 #
 234 # Unfortunately, _IOWR() is regularly used with a third argument of 0,
 235 # so we have to disable all these smatch checks.
 236 #
 237 SMOFF += sizeof
 238 
 239 CSTD = $(CSTD_GNU99)
 240 
 241 CFLAGS_uts              =
 242 CFLAGS_uts              += $(STAND_FLAGS_$(CLASS))
 243 CFLAGS_uts              += $(CCVERBOSE)
 244 CFLAGS_uts              += $(ILDOFF)




 205 CPPFLAGS        = $(ALWAYS_DEFS) $(ALL_DEFS) $(CONFIG_DEFS) \
 206                    $(INCLUDE_PATH) $(EXTRA_OPTIONS)
 207 ASFLAGS         += -P
 208 AS_CPPFLAGS     = $(ALWAYS_DEFS) $(ALL_DEFS) $(CONFIG_DEFS) $(AS_DEFS) \
 209                    $(AS_INC_PATH) $(EXTRA_OPTIONS)
 210 
 211 #
 212 #       Make it (relatively) easy to share compilation options between
 213 #       all kernel implementations.
 214 #
 215 
 216 # Override the default, the kernel is squeaky clean
 217 CERRWARN = -errtags=yes -errwarn=%all
 218 
 219 CERRWARN += -_gcc=-Wno-missing-braces
 220 CERRWARN += -_gcc=-Wno-sign-compare
 221 CERRWARN += -_gcc=-Wno-unknown-pragmas
 222 CERRWARN += -_gcc=-Wno-unused-parameter
 223 CERRWARN += -_gcc=-Wno-missing-field-initializers
 224 
 225 # gcc4 lacks -Wno-maybe-uninitialized
 226 CNOWARN_UNINIT = -_gcc4=-Wno-uninitialized \
 227     -_gcc7=-Wno-maybe-uninitialized \
 228     -_gcc8=-Wno-maybe-uninitialized
 229 
 230 # DEBUG v. -nd make for frequent unused variables, empty conditions, etc. in
 231 # -nd builds
 232 $(RELEASE_BUILD)CERRWARN += -_gcc=-Wno-unused
 233 $(RELEASE_BUILD)CERRWARN += -_gcc=-Wno-empty-body
 234 
 235 CERRWARN += -_smatch=-p=illumos_kernel
 236 include $(SRC)/Makefile.smatch
 237 
 238 #
 239 # Unfortunately, _IOWR() is regularly used with a third argument of 0,
 240 # so we have to disable all these smatch checks.
 241 #
 242 SMOFF += sizeof
 243 
 244 CSTD = $(CSTD_GNU99)
 245 
 246 CFLAGS_uts              =
 247 CFLAGS_uts              += $(STAND_FLAGS_$(CLASS))
 248 CFLAGS_uts              += $(CCVERBOSE)
 249 CFLAGS_uts              += $(ILDOFF)