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

@@ -20,10 +20,11 @@
 
 #
 # Copyright 2007 Sun Microsystems, Inc.  All rights reserved.
 # Use is subject to license terms.
 #
+# Copyright (c) 2018, Joyent, Inc.
 
 #
 #       This makefile drives the production of the Chelsio N110
 #       10G Ethernet (CH) driver module in x86 systems
 #

@@ -102,10 +103,15 @@
 CERRWARN        += -_gcc=-Wno-unused-label
 CERRWARN        += -_gcc=-Wno-unused-function
 CERRWARN        += -_gcc=-Wno-unused-variable
 CERRWARN        += -_gcc=-Wno-parentheses
 
+SMOFF += indenting,all_func_returns,no_if_block
+
+# needs work
+$(OBJS_DIR)/sge.o := SMOFF += index_overflow
+
 #
 #
 #       Default build targets.
 #
 .KEEP_STATE: