Print this page
10805 Fix for 10687 can be improved


 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 #
 240 # DEBUG-only macros that define away to nothing confuse this check,
 241 # unfortunately.
 242 #
 243 $(RELEASE_BUILD)SMOFF += indenting
 244 
 245 CSTD = $(CSTD_GNU99)
 246 
 247 CFLAGS_uts              =
 248 CFLAGS_uts              += $(STAND_FLAGS_$(CLASS))
 249 CFLAGS_uts              += $(CCVERBOSE)
 250 CFLAGS_uts              += $(ILDOFF)
 251 CFLAGS_uts              += $(XAOPT)
 252 CFLAGS_uts              += $(CTF_FLAGS_$(CLASS))
 253 CFLAGS_uts              += $(CERRWARN)
 254 CFLAGS_uts              += $(CCNOAUTOINLINE)
 255 CFLAGS_uts              += $(CCNOREORDER)
 256 CFLAGS_uts              += $(CCNOAGGRESSIVELOOPS)
 257 CFLAGS_uts              += $(CGLOBALSTATIC)
 258 CFLAGS_uts              += $(EXTRA_CFLAGS)
 259 CFLAGS_uts              += $(CSOURCEDEBUGFLAGS)
 260 CFLAGS_uts              += $(CUSERFLAGS)
 261 
 262 #
 263 #       Declare that $(OBJECTS) and $(LINTS) can be compiled in parallel.
 264 #       The DUMMY target is for those instances where OBJECTS and LINTS




 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)
 245 CFLAGS_uts              += $(XAOPT)
 246 CFLAGS_uts              += $(CTF_FLAGS_$(CLASS))
 247 CFLAGS_uts              += $(CERRWARN)
 248 CFLAGS_uts              += $(CCNOAUTOINLINE)
 249 CFLAGS_uts              += $(CCNOREORDER)
 250 CFLAGS_uts              += $(CCNOAGGRESSIVELOOPS)
 251 CFLAGS_uts              += $(CGLOBALSTATIC)
 252 CFLAGS_uts              += $(EXTRA_CFLAGS)
 253 CFLAGS_uts              += $(CSOURCEDEBUGFLAGS)
 254 CFLAGS_uts              += $(CUSERFLAGS)
 255 
 256 #
 257 #       Declare that $(OBJECTS) and $(LINTS) can be compiled in parallel.
 258 #       The DUMMY target is for those instances where OBJECTS and LINTS