Print this page
10079 smatch Makefile changes for usr/src/lib

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

@@ -67,10 +68,12 @@
 
 CFLAGS +=       $(CCVERBOSE) -I..
 CERRWARN +=     -_gcc=-Wno-switch
 CERRWARN +=     -_gcc=-Wno-unused-variable
 
+SMOFF += all_func_returns
+
 DYNFLAGS +=     $(KRUNPATH) $(KMECHLIB) $(ZIGNORE)
 
 LDLIBS +=       -lc -ltecla
 
 $(PICS) :=      CFLAGS += $(XFFLAG)