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

@@ -19,12 +19,13 @@
 # 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 = ../..
 

@@ -62,10 +63,13 @@
 CERRWARN        += -_gcc=-Wno-uninitialized
 CERRWARN        += -_gcc=-Wno-parentheses
 CERRWARN        += -_gcc=-Wno-type-limits
 CERRWARN        += -_gcc=-Wno-unused-variable
 
+# needs work
+$(OBJS_DIR)/sol_cma.o := SMOFF += deref_check
+
 #
 #       Default build targets.
 #
 .KEEP_STATE: