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) 2009, 2010, Oracle and/or its affiliates. All rights reserved.
#
-# Copyright (c) 2018, Joyent, Inc.
+# Copyright 2019, Joyent, Inc.
LIBRARY= udapl_tavor.a
VERS= .1
LOCOBJS = \
@@ -151,15 +151,16 @@
CERRWARN += -_gcc=-Wno-parentheses
CERRWARN += -_gcc=-Wno-uninitialized
CERRWARN += -_gcc=-Wno-switch
+$(NOT_RELEASE_BUILD)CPPFLAGS += -DDAPL_DBG
+$(RELEASE_BUILD)CERRWARN += -_gcc=-Wno-unused
+
# not linted
SMATCH=off
-$(NOT_RELEASE_BUILD)CPPFLAGS += -DDAPL_DBG
-
.KEEP_STATE:
all: $(LIBS)
debug: all