From 8298070dab41ee457ebd7980cc8253c776a60594 Mon Sep 17 00:00:00 2001 From: erickson Date: Tue, 11 Mar 2008 16:49:41 +0000 Subject: [PATCH] as it turns out, this was actually a problem with the makefile, not the utils.h macro def. git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@1281 9efc2488-bf62-4759-914b-345cdb29e865 --- include/opensrf/utils.h | 2 +- src/Makefile | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/opensrf/utils.h b/include/opensrf/utils.h index a42bc06..dcdba02 100644 --- a/include/opensrf/utils.h +++ b/include/opensrf/utils.h @@ -41,7 +41,7 @@ GNU General Public License for more details. memset( ptr, 0, size );\ } while(0) -#ifndef NDEBUG +#ifdef NDEBUG // The original ... replace with noop once no more errors occur in NDEBUG mode #define osrf_clearbuf( s, n ) memset( s, 0, n ) #else diff --git a/src/Makefile b/src/Makefile index f527987..00153aa 100644 --- a/src/Makefile +++ b/src/Makefile @@ -13,7 +13,7 @@ export LDFLAGS += -Wl,-rpath=$(LIBDIR) -L $(TMPDIR) -L . export CFLAGS += -D_LARGEFILE64_SOURCE -pipe -g -Wall -O2 -fPIC -I ../../include/ -I$(LIBXML2_HEADERS) -I$(APACHE2_HEADERS) -I$(APR_HEADERS) ifneq ($(DEBUG), 1) -export CGLAGS += -DNDEBUG +export CFLAGS += -DNDEBUG endif ifeq ($(OSRF_LEGACY_JSON), 1) -- 2.43.2