From eb84049d817bf05e20421db40cf3c43a17156a20 Mon Sep 17 00:00:00 2001 From: obrien Date: Wed, 13 Sep 2006 23:27:21 +0000 Subject: [PATCH] When building WITHOUT_ASSERT_DEBUG, we need to disable -Werror as its easy to see "warning: unused variable `foo'". --- share/mk/bsd.lib.mk | 1 + share/mk/bsd.prog.mk | 1 + 2 files changed, 2 insertions(+) diff --git a/share/mk/bsd.lib.mk b/share/mk/bsd.lib.mk index b840152ba8f2..53692d0f4793 100644 --- a/share/mk/bsd.lib.mk +++ b/share/mk/bsd.lib.mk @@ -30,6 +30,7 @@ CFLAGS+= ${CRUNCH_CFLAGS} .if ${MK_ASSERT_DEBUG} == "no" CFLAGS+= -DNDEBUG +NO_WERROR= .endif .if defined(DEBUG_FLAGS) diff --git a/share/mk/bsd.prog.mk b/share/mk/bsd.prog.mk index 4f241e8e910a..9601c71812f4 100644 --- a/share/mk/bsd.prog.mk +++ b/share/mk/bsd.prog.mk @@ -12,6 +12,7 @@ CFLAGS+=${COPTS} .if ${MK_ASSERT_DEBUG} == "no" CFLAGS+= -DNDEBUG +NO_WERROR= .endif .if defined(DEBUG_FLAGS)