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 2010 Sun Microsystems, Inc. All rights reserved.
# Use is subject to license terms.
#
LIBRARY = libld.a
@@ -92,10 +93,14 @@
CERRWARN += -_gcc=-Wno-uninitialized
CERRWARN += -_gcc=-Wno-switch
CERRWARN += -_gcc=-Wno-char-subscripts
CERRWARN += -_gcc=-Wno-type-limits
+# Suppress the error for: _vdp
+pics/version32.o pics/version64.o := \
+ CERRWARN += -_gcc=-Wno-unused-but-set-variable
+
# Location of the shared relocation engines maintained under usr/src/uts.
#
KRTLD_I386 = $(SRCBASE)/uts/$(VAR_PLAT_i386)/krtld
KRTLD_AMD64 = $(SRCBASE)/uts/$(VAR_PLAT_amd64)/krtld
KRTLD_SPARC = $(SRCBASE)/uts/$(VAR_PLAT_sparc)/krtld