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

@@ -19,10 +19,11 @@
 # CDDL HEADER END
 #
 #
 # Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
 #
+# Copyright (c) 2018, Joyent, Inc.
 
 #
 #       Path to the base of the uts directory tree (usually /usr/src/uts).
 #
 UTSBASE = ../..

@@ -63,10 +64,13 @@
 CERRWARN        += -_gcc=-Wno-unused-variable
 CERRWARN        += -_gcc=-Wno-unused-function
 CERRWARN        += -_gcc=-Wno-uninitialized
 CERRWARN        += -_gcc=-Wno-parentheses
 
+# needs work
+SMATCH=off
+
 #
 #       Define targets
 #
 ALL_TARGET      = $(BINARY) $(SRC_CONFILE)
 LINT_TARGET     = $(MODULE).lint