Print this page
10077 usr/src/uts/ Makefile changes for smatch

@@ -20,10 +20,12 @@
 #
 #
 # Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
 # Use is subject to license terms.
 #
+# Copyright (c) 2018, Joyent, Inc.
+
 #
 # Path to the base of the uts directory tree (usually /usr/src/uts).
 #
 UTSBASE = ../..
 

@@ -55,10 +57,13 @@
 LDFLAGS         += -dy -Ndrv/dld -Nmisc/mac -Nmisc/dls
 
 CERRWARN        += -_gcc=-Wno-switch
 CERRWARN        += -_gcc=-Wno-uninitialized
 
+# needs work
+SMOFF += deref_check
+
 #
 #       Default build targets.
 #
 .KEEP_STATE: