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

@@ -18,10 +18,11 @@
 #
 # CDDL HEADER END
 #
 
 #
+# Copyright 2017 Gary Mills
 # Copyright (c) 2017 Peter Tribble.
 # Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
 # Use is subject to license terms.
 #
 

@@ -32,10 +33,13 @@
 
 include $(SRC)/cmd/svr4pkg/Makefile.svr4pkg
 
 LDLIBS  +=      -lpkg -ladm -lgen
 
+# Suppress errors for: funcSigint funcSighup pls pld
+lock.o := CERRWARN += -_gcc=-Wno-unused-but-set-variable
+
 .KEEP_STATE:
 all:            $(PROG)
 
 install:        all $(ROOTPROG)