Print this page
10063 basic support for smatch
10153 checkpaths shouldn't check packaging exceptions

@@ -21,10 +21,12 @@
 
 #
 # Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
 # Use is subject to license terms.
 #
+# Copyright (c) 2018, Joyent, Inc.
+#
 
 CPPFLAGS.sm=    $(CPPFLAGS.master) -DSOLARIS=2$(RELEASE_MINOR)00 \
                 -D_FILE_OFFSET_BITS=64
 CERRWARN +=     -_gcc=-Wno-clobbered
 CERRWARN +=     -_gcc=-Wno-parentheses

@@ -34,10 +36,13 @@
 CERRWARN +=     -_gcc=-Wno-unused-variable
 CERRWARN +=     -_gcc=-Wno-unused-but-set-parameter
 CERRWARN +=     -_gcc=-Wno-unused-but-set-variable
 DBMDEF=         -DNDBM -DNEWDB -DNIS -DUSERDB -DMAP_REGEX -DLDAPMAP
 
+# smatch can't handle main()
+SMATCH =        off
+
 ROOTLIBSMTPSM = $(ROOTLIB)/smtp/sendmail
 
 $(ROOTLIBSMTPSM):
         $(INS.dir)