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

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/Makefile.uts
          +++ new/usr/src/uts/Makefile.uts
↓ open down ↓ 214 lines elided ↑ open up ↑
 215  215  
 216  216  # Override the default, the kernel is squeaky clean
 217  217  CERRWARN = -errtags=yes -errwarn=%all
 218  218  
 219  219  CERRWARN += -_gcc=-Wno-missing-braces
 220  220  CERRWARN += -_gcc=-Wno-sign-compare
 221  221  CERRWARN += -_gcc=-Wno-unknown-pragmas
 222  222  CERRWARN += -_gcc=-Wno-unused-parameter
 223  223  CERRWARN += -_gcc=-Wno-missing-field-initializers
 224  224  
      225 +# gcc4 lacks -Wno-maybe-uninitialized
      226 +CNOWARN_UNINIT = -_gcc4=-Wno-uninitialized \
      227 +    -_gcc7=-Wno-maybe-uninitialized \
      228 +    -_gcc8=-Wno-maybe-uninitialized
      229 +
 225  230  # DEBUG v. -nd make for frequent unused variables, empty conditions, etc. in
 226  231  # -nd builds
 227  232  $(RELEASE_BUILD)CERRWARN += -_gcc=-Wno-unused
 228  233  $(RELEASE_BUILD)CERRWARN += -_gcc=-Wno-empty-body
 229  234  
 230  235  CERRWARN += -_smatch=-p=illumos_kernel
 231  236  include $(SRC)/Makefile.smatch
 232  237  
 233  238  #
 234  239  # Unfortunately, _IOWR() is regularly used with a third argument of 0,
↓ open down ↓ 420 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX