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

@@ -20,10 +20,11 @@
 #
 #
 # Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
 # Use is subject to license terms.
 #
+# Copyright (c) 2018, Joyent, Inc.
 
 LIBRARY=        libpicld_pluginutil.a
 VERS=           .1
 
 OBJECTS=        picld_pluginutil.o

@@ -51,10 +52,13 @@
 POFILE= picld_pluginutil.po
 
 CPPFLAGS +=     -I.. -I$(SRC)/lib/libpicl -I$(SRC)/lib/libpicltree
 CFLAGS +=       $(CCVERBOSE)
 CERRWARN +=     -_gcc=-Wno-uninitialized
+
+SMOFF += all_func_returns
+
 CPPFLAGS +=     -D_REENTRANT
 DYNFLAGS +=     $(ZNOLAZYLOAD)
 LDLIBS +=       -L$(SRC)/lib/libpicltree/$(MACH)
 LDLIBS +=       -lc -lpicltree