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

@@ -19,11 +19,11 @@
 # CDDL HEADER END
 #
 #
 # Copyright (c) 2006, 2010, Oracle and/or its affiliates. All rights reserved.
 #
-#
+# Copyright (c) 2018, Joyent, Inc.
 
 LIBRARY =       libmapid.a
 VERS    =       .1
 SMF_DIR =       $(SRC)/cmd/fs.d/nfs/lib
 

@@ -56,10 +56,12 @@
 
 CERRWARN +=     -_gcc=-Wno-switch
 CERRWARN +=     -_gcc=-Wno-unused-variable
 CERRWARN +=     -_gcc=-Wno-uninitialized
 
+SMOFF += all_func_returns
+
 .KEEP_STATE:
 
 all:  $(LIBS)
 
 install: $(ROOTLIBDIR) all