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

@@ -20,10 +20,11 @@
 #
 #
 # Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
 # Use is subject to license terms.
 #
+# Copyright (c) 2018, Joyent, Inc.
 
 PROG =          cpustat
 OBJS =          $(PROG).o caps.o time.o setgrp.o strtoset.o
 SRCS =          $(OBJS:%.o=../common/%.c)
 

@@ -38,10 +39,13 @@
 CFLAGS          += $(CCVERBOSE) $(CTF_FLAGS)
 CERRWARN        += -_gcc=-Wno-uninitialized
 CPPFLAGS        += -D_REENTRANT -I$(SRC)/lib/libcpc/common -I$(STATCOMMONDIR)
 LDLIBS +=       -lcpc -lkstat
 
+# not linted
+SMATCH=off
+
 .KEEP_STATE:
 
 all:    $(PROG)
 
 $(PROG): $(OBJS) $(STAT_COMMON_OBJS)