[Opensrf-commits] r1281 - in trunk: include/opensrf src

svn at svn.open-ils.org svn at svn.open-ils.org
Tue Mar 11 13:22:54 EDT 2008


Author: erickson
Date: 2008-03-11 12:49:41 -0400 (Tue, 11 Mar 2008)
New Revision: 1281

Modified:
   trunk/include/opensrf/utils.h
   trunk/src/Makefile
Log:
as it turns out, this was actually a problem with the makefile, not the utils.h macro def.

Modified: trunk/include/opensrf/utils.h
===================================================================
--- trunk/include/opensrf/utils.h	2008-03-11 14:40:55 UTC (rev 1280)
+++ trunk/include/opensrf/utils.h	2008-03-11 16:49:41 UTC (rev 1281)
@@ -41,7 +41,7 @@
 		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

Modified: trunk/src/Makefile
===================================================================
--- trunk/src/Makefile	2008-03-11 14:40:55 UTC (rev 1280)
+++ trunk/src/Makefile	2008-03-11 16:49:41 UTC (rev 1281)
@@ -13,7 +13,7 @@
 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)



More information about the opensrf-commits mailing list