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 2009 Sun Microsystems, Inc. All rights reserved.
# Use is subject to license terms.
#
SBINPROG = keyserv newkey
@@ -72,10 +73,13 @@
CERRWARN += -_gcc=-Wno-uninitialized
CERRWARN += -_gcc=-Wno-unused-variable
CERRWARN += -_gcc=-Wno-address
CERRWARN += -_gcc=-Wno-unused-function
+# Suppress error: typedef locally defined but not used
+keyserv.o := CERRWARN += -_gcc=-Wno-unused-local-typedefs
+
LDLIBS += -lnsl
chkey := LDLIBS += -lsldap
keyserv := LDLIBS += -lmp
newkey := LDLIBS += -lsldap -lsocket