Print this page
10080 smatch Makefile changes for usr/src/cmd

@@ -21,11 +21,11 @@
 #
 # Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
 # Use is subject to license terms.
 #
 # Copyright (c) 2013 by Delphix. All rights reserved.
-# Copyright 2015, Joyent, Inc.
+# Copyright (c) 2018, Joyent, Inc.
 #
 
 .KEEP_STATE:
 .SUFFIXES:
 

@@ -121,10 +121,12 @@
 LDFLAGS                 += $(ZTEXT)
 LDFLAGS64               += $(ZTEXT)
 ASFLAGS                 += -P
 AS_CPPFLAGS             += -D_ASM
 
+SMOFF += all_func_returns,index_overflow
+
 # Module type-specific compiler flags
 $(MODOBJS) :=                   CFLAGS += $(C_BIGPICFLAGS) $(XREGSFLAG)
 $(MODOBJS) :=                   CFLAGS64 += $(C_BIGPICFLAGS) $(XREGSFLAG)
 $(KMODOBJS) $(KLINTOBJS) :=     CPPFLAGS += -D_KMDB
 $(KMODOBJS) :=                  V9CODESIZE = $(CCABS32)