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

@@ -16,10 +16,11 @@
 # fields enclosed by brackets "[]" replaced with your own identifying
 # information: Portions Copyright [yyyy] [name of copyright owner]
 #
 # CDDL HEADER END
 #
+# Copyright 2017 Gary Mills
 # Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
 # Use is subject to license terms.
 #
 
 # cmd/sendmail/aux/Makefile

@@ -53,10 +54,13 @@
 praliases :=    LDLIBS += -lldap
 smrsh :=        LDLIBS += -lldap
 vacation :=     LDLIBS += -lldap
 $(ROOTLIBSMTPSM)/mailq :=       FILEMODE = 4555
 
+# Suppress the error for: verbose
+editmap.o := CERRWARN += -_gcc=-Wno-unused-but-set-variable
+
 INCPATH=        -I../src -I../db -I../include
 
 ENVDEF=         -DNOT_SENDMAIL
 SUNENVDEF=      -DSUN_EXTENSIONS -DUSE_VENDOR_CF_PATH
 DBMDEF=         -DNDBM -DNEWDB