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

@@ -21,10 +21,12 @@
 
 #
 # Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
 # Use is subject to license terms.
 #
+# Copyright (c) 2018, Joyent, Inc.
+#
 #       This makefile drives the production of unix (and unix.o).
 #
 #       i86xpv implementation architecture dependent
 #
 

@@ -146,10 +148,13 @@
 CERRWARN        += -_gcc=-Wno-type-limits
 CERRWARN        += -_gcc=-Wno-clobbered
 CERRWARN        += -_gcc=-Wno-unused-value
 CERRWARN        += -_gcc=-Wno-empty-body
 
+# needs work
+SMATCH=off
+
 # Ensure that lint sees 'struct cpu' containing a fully declared
 # embedded 'struct machcpu'
 #
 LINTFLAGS       += -D_MACHDEP -I../../i86pc