Print this page
10686 Debug macros causes smatch issues

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/Makefile.uts
          +++ new/usr/src/uts/Makefile.uts
↓ open down ↓ 228 lines elided ↑ open up ↑
 229  229  
 230  230  CERRWARN += -_smatch=-p=illumos_kernel
 231  231  include $(SRC)/Makefile.smatch
 232  232  
 233  233  #
 234  234  # Unfortunately, _IOWR() is regularly used with a third argument of 0,
 235  235  # so we have to disable all these smatch checks.
 236  236  #
 237  237  SMOFF += sizeof
 238  238  
      239 +#
      240 +# DEBUG-only macros that define away to nothing confuse this check,
      241 +# unfortunately.
      242 +#
      243 +$(RELEASE_BUILD)SMOFF += indenting
      244 +
 239  245  CSTD = $(CSTD_GNU99)
 240  246  
 241  247  CFLAGS_uts              =
 242  248  CFLAGS_uts              += $(STAND_FLAGS_$(CLASS))
 243  249  CFLAGS_uts              += $(CCVERBOSE)
 244  250  CFLAGS_uts              += $(ILDOFF)
 245  251  CFLAGS_uts              += $(XAOPT)
 246  252  CFLAGS_uts              += $(CTF_FLAGS_$(CLASS))
 247  253  CFLAGS_uts              += $(CERRWARN)
 248  254  CFLAGS_uts              += $(CCNOAUTOINLINE)
↓ open down ↓ 406 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX