Print this page
10077 usr/src/uts/ Makefile changes for smatch
*** 20,29 ****
--- 20,30 ----
#
#
# 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,56 ****
--- 48,60 ----
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)