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

@@ -20,10 +20,11 @@
 #
 #
 # Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
 # Use is subject to license terms.
 #
+# Copyright (c) 2018, Joyent, Inc.
 
 UTSBASE = ../..
 
 MODULE          = dtrace
 OBJECTS         = $(DTRACE_OBJS:%=$(OBJS_DIR)/%)

@@ -47,10 +48,13 @@
 
 CERRWARN        += -_gcc=-Wno-parentheses
 CERRWARN        += -_gcc=-Wno-type-limits
 CERRWARN        += -_gcc=-Wno-uninitialized
 
+# needs work
+$(OBJS_DIR)/dtrace.o := SMOFF += signed_integer_overflow_check,deref_check
+
 CPPFLAGS        += -I$(SRC)/common/util
 
 ALL_TARGET      = $(BINARY) $(SRC_CONFILE)
 LINT_TARGET     = $(MODULE).lint
 INSTALL_TARGET  = $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE)