Print this page
10080 smatch Makefile changes for usr/src/cmd

@@ -19,10 +19,11 @@
 # CDDL HEADER END
 #
 # Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
 # Use is subject to license terms.
 #
+# Copyright (c) 2018, Joyent, Inc.
 
 PROG=           syslogd
 ROTATESCRIPT=   newsyslog
 CONFIGFILE=     syslog.conf
 TXTS=           syslog.conf

@@ -33,10 +34,14 @@
 
 include ../../Makefile.cmd
 
 $(PROG) lint    := LDLIBS += -lscf -lnsl
 CERRWARN        += -_gcc=-Wno-uninitialized
+
+# not linted
+SMATCH=off
+
 CPPFLAGS        += -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT
 CFLAGS          += -DNDEBUG
 
 # there's some extra utility code defined but not used.
 LINTFLAGS       += -erroff=E_NAME_DEF_NOT_USED2