Print this page
8516 Suppress gcc errors with -Wno- in Makefile for usr/src/cmd
@@ -18,10 +18,11 @@
# information: Portions Copyright [yyyy] [name of copyright owner]
#
# CDDL HEADER END
#
#
+# Copyright 2017 Gary Mills
# Copyright (c) 1989 by Sun Microsystems, Inc.
#
FSTYPE= nfs
TYPEPROG= rquotad
@@ -36,10 +37,13 @@
CPPFLAGS += -D_LARGEFILE64_SOURCE
CERRWARN += -_gcc=-Wno-implicit-function-declaration
CERRWARN += -_gcc=-Wno-unused-variable
LDLIBS += -lnsl
+# Suppress error: typedef locally defined but not used
+rpc.rquotad.o := CERRWARN += -_gcc=-Wno-unused-local-typedefs
+
$(TYPEPROG): $(OBJS)
$(LINK.c) -o $@ $(LDLIBS) $(OBJS)
$(POST_PROCESS)
lint: lint_SRCS