From 1f4e2c88fd6ca44ec50f178ca8baa18a9c764a98 Mon Sep 17 00:00:00 2001 From: David Quigley Date: Wed, 13 Sep 2017 14:48:05 -0400 Subject: ZTEST: Always enable asserts The build for ztest always enabled debug information but does not enable asserts unless --enable-debug is used. This will always enable asserts in the ztest code. Reviewed-by: George Melikov Reviewed-by Brian Behlendorf Signed-off-by: David Quigley Closes #6640 --- cmd/ztest/Makefile.am | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/ztest/Makefile.am b/cmd/ztest/Makefile.am index 930a7ec3a..cbfb95fd3 100644 --- a/cmd/ztest/Makefile.am +++ b/cmd/ztest/Makefile.am @@ -3,7 +3,7 @@ include $(top_srcdir)/config/Rules.am # -Wnoformat-truncation to get rid of compiler warning for unchecked # truncating snprintfs on gcc 7.1.1. AM_CFLAGS += $(DEBUG_STACKFLAGS) $(FRAME_LARGER_THAN) $(NO_FORMAT_TRUNCATION) -AM_CPPFLAGS += -DDEBUG +AM_CPPFLAGS += -DDEBUG -UNDEBUG DEFAULT_INCLUDES += \ -I$(top_srcdir)/include \ -- cgit v1.2.3