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

@@ -21,10 +21,11 @@
 
 #
 # Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
 # Use is subject to license terms.
 #
+# Copyright (c) 2018, Joyent, Inc.
 
 PROG:sh = basename `cd ..; pwd`
 
 OBJS = $(PROG).o
 

@@ -54,22 +55,28 @@
 LDLIBS_pwdx             = -lproc
 
 LDLIBS += $(LDLIBS_$(PROG))
 
 CERRWARN_plgrp  += -_gcc=-Wno-parentheses
+CERRWARN_plgrp  += -_smatch=off
 
+CERRWARN_pmadvise += -_smatch=off
+
 CERRWARN_ppriv  += -_gcc=-Wno-parentheses
 CERRWARN_ppriv  += -_gcc=-Wno-uninitialized
 
 CERRWARN_ptree  += -_gcc=-Wno-parentheses
+CERRWARN_ptree  += -_smatch=off
 
 CERRWARN_pstack += -_gcc=-Wno-uninitialized
 CERRWARN_pstack += -_gcc=-Wno-clobbered
 
 CERRWARN_pargs  += -_gcc=-Wno-clobbered
 CERRWARN_pargs  += -_gcc=-Wno-type-limits
 
+CERRWARN_pwait  += -_smatch=off
+
 CERRWARN += $(CERRWARN_$(PROG))
 
 # pargs depends on ../../common/elfcap components
 # pmadvise depends on pmap components