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

@@ -20,10 +20,11 @@
 #
 
 #
 # Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
 #
+# Copyright (c) 2018, Joyent, Inc.
 
 LIBRARY = libsmp.a
 VERS = .1
 
 OBJECTS = \

@@ -42,10 +43,12 @@
 CFLAGS += $(CCVERBOSE)
 
 CERRWARN += -_gcc=-Wno-type-limits
 CERRWARN += -_gcc=-Wno-uninitialized
 
+SMOFF += all_func_returns
+
 LDLIBS += \
         -lumem \
         -lc
 LIBS =          $(DYNLIB) $(LINTLIB)
 ROOTLIBDIR =    $(ROOTSCSILIBDIR)