Print this page
10804 Enable unused warnings outside of uts
Reviewed by: Andy Stormont <astormont@racktopsystems.com>
Reviewed by: Toomas Soome <tsoome@me.com>

@@ -20,11 +20,11 @@
 #
 
 #
 # Copyright (c) 1990, 2010, Oracle and/or its affiliates. All rights reserved.
 # Copyright 2014 Garrett D'Amore <garrett@damore.org>
-# Copyright (c) 2018, Joyent, Inc.
+# Copyright 2019, Joyent, Inc.
 #
 
 SYNCPROG=       syncinit syncloop syncstat
 
 PROG=           6to4relay arp if_mpadm \

@@ -162,10 +162,11 @@
 in.rarpd                :=      LDLIBS += -linetutil -ldlpi
 if_mpadm                :=      LDLIBS += -linetutil -lipmp
 if_mpadm.po             :=      XGETFLAGS += -a
 route                   :=      CPPFLAGS += -DNDEBUG
 ndd                     :=      LDLIBS += -ldladm -lipadm
+$(RELEASE_BUILD)ndd     :=      CERRWARN += -_gcc=-Wno-unused
 in.comsat               :=      LDFLAGS += $(MAPFILE.NGB:%=-M%)
 
 .KEEP_STATE:
 
 .PARALLEL: