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 2009 Sun Microsystems, Inc.  All rights reserved.
 # Use is subject to license terms.
 #
-# Copyright 2018 Joyent, Inc.
+# Copyright 2019, Joyent, Inc.
 #
 
 PROMSRCS += \
         prom_env.c \
         prom_getchar.c \

@@ -54,10 +54,12 @@
 
 $(CTXOFFUSERS) $(CTXOFFUSERS:%.o=%.ln): kmdb_context_off.h
 
 kaif_activate.o kaif_activate.ln := CPPFLAGS += -D_MACHDEP -D_KMEMUSER
 
+$(RELEASE_BUILD)kaif.o := CERRWARN += -_gcc=-Wno-unused
+
 STANDLIBS += \
         ../libstandctf/libstandctf.so \
         $(SRC)/lib/libumem/$(MACHDIR)/libstandumem.so \
         ../libstand/libstand.a