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

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

@@ -40,10 +41,13 @@
 CPPFLAGS += -I../common -I.
 CFLAGS += $(CCVERBOSE) $(C_BIGPICFLAGS)
 CFLAGS64 += $(CCVERBOSE) $(C_BIGPICFLAGS)
 CERRWARN += -_gcc=-Wno-switch
 CERRWARN += -_gcc=-Wno-uninitialized
+
+SMOFF += all_func_returns
+
 LDLIBS += -lnvpair -lc
 
 LINTFLAGS = -msux
 LINTFLAGS64 = -msux -m64