Print this page
8516 Suppress gcc errors with -Wno- in Makefile for usr/src/cmd

@@ -17,10 +17,11 @@
 # information: Portions Copyright [yyyy] [name of copyright owner]
 #
 # CDDL HEADER END
 #
 #
+# Copyright 2017 Gary Mills
 # Copyright 2010 Sun Microsystems, Inc.  All rights reserved.
 # Use is subject to license terms.
 #
 # cmd/sgs/prof/Makefile.com
 #

@@ -46,7 +47,10 @@
 LDLIBS +=       $(CONVLIBDIR) $(CONV_LIB) $(ELFLIBDIR) -lelf
 LINTSRCS =      $(SRCS)
 LINTFLAGS +=    -x
 CLEANFILES +=   $(LINTOUTS)
 
+# Suppress the error for: s_inv
+prof.o := CERRWARN += -_gcc=-Wno-unused-but-set-variable
+
 %.o:            ../common/%.c
                 $(COMPILE.c) $<