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 = powertop
 
 COMMON_OBJS = $(PROG).o \
         display.o \

@@ -41,10 +42,13 @@
 
 CFLAGS          += $(CCVERBOSE)
 CFLAGS64        += $(CCVERBOSE)
 CERRWARN        += -_gcc=-Wno-parentheses
 CERRWARN        += -_gcc=-Wno-uninitialized
+
+SMOFF += free
+
 LDLIBS          += -lcurses -ldtrace -lkstat
 
 FILEMODE        = 0555
 
 CLEANFILES      += $(COMMON_OBJS)