Print this page
8516 Suppress gcc errors with -Wno- in Makefile for usr/src/cmd
@@ -17,11 +17,11 @@
# information: Portions Copyright [yyyy] [name of copyright owner]
#
# CDDL HEADER END
#
-# Copyright (c) 2011 Gary Mills
+# Copyright (c) 2017 Gary Mills
#
# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
# Use is subject to license terms.
#
@@ -39,10 +39,13 @@
recipient.o sasl.o savemail.o sfsasl.o sm_resolve.o srvrsmtp.o stab.o \
stats.o sysexits.o tls.o trace.o udb.o usersmtp.o util.o version.o
SRCS= $(OBJS:%.o=%.c)
+# Suppress the error for: align
+conf.o := CERRWARN += -_gcc=-Wno-unused-but-set-variable
+
MAPFILES = $(MAPFILE.INT) $(MAPFILE.NGB)
LDFLAGS += $(MAPFILES:%=-M%)
LDLIBS += ../libsmutil/libsmutil.a ../libsm/libsm.a -lresolv -lsocket \
-lnsl ../db/libdb.a -lldap -lsldap -lwrap -lumem \