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

@@ -23,10 +23,11 @@
 # Use is subject to license terms.
 #
 #
 # usr/src/lib/hal/libhal/Makefile.com
 #
+# Copyright (c) 2018, Joyent, Inc.
 
 LIBRARY =       libhal.a
 VERS =          .1.0.0
 VERS_MAJ =      .1
 OBJECTS =       libhal.o

@@ -42,10 +43,12 @@
 
 CFLAGS +=       $(CCVERBOSE)
 CPPFLAGS +=     $(HAL_CONFIG_CPPFLAGS)
 CPPFLAGS +=     -DGETTEXT_PACKAGE=\"$(HAL_GETTEXT_PACKAGE)\" -DENABLE_NLS
 
+SMOFF += all_func_returns,leaks
+
 ROOTMAJLINK =   $(ROOTLIBDIR)/$(LIBRARY:.a=.so)$(VERS_MAJ)
 ROOTMAJLINK64 = $(ROOTLIBDIR64)/$(LIBRARY:.a=.so)$(VERS_MAJ)
 
 .KEEP_STATE: