about summary refs log tree commit diff
path: root/ChangeLog
diff options
context:
space:
mode:
authorWill Newton <will.newton@linaro.org>2014-03-31 15:00:32 +0100
committerWill Newton <will.newton@linaro.org>2014-04-11 09:54:18 +0100
commit439bda3209b768c349b98b8ceecf0fa8d94600e9 (patch)
treeb0db463e0025778f6368795e559f955f7da6fcdd /ChangeLog
parent6a5d6ea128153f5a00d8c80f15f76004006767da (diff)
downloadglibc-439bda3209b768c349b98b8ceecf0fa8d94600e9.tar.gz
glibc-439bda3209b768c349b98b8ceecf0fa8d94600e9.tar.xz
glibc-439bda3209b768c349b98b8ceecf0fa8d94600e9.zip
malloc: Fix MALLOC_DEBUG -Wundef warning
MALLOC_DEBUG is set optionally on the command line. Default the value
to zero if it is not set on the command line, and test its value
with #if rather than #ifdef. Verified the code is identical before
and after this change apart from line numbers.

ChangeLog:

2014-04-11  Will Newton  <will.newton@linaro.org>

	* malloc/malloc.c [!MALLOC_DEBUG]: #define MALLOC_DEBUG
	to zero if it is not defined elsewhere.  (mtrim): Test
	the value of MALLOC_DEBUG with #if rather than #ifdef.
Diffstat (limited to 'ChangeLog')
-rw-r--r--ChangeLog6
1 files changed, 6 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index fb0177d554..e7e358385b 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2014-04-11  Will Newton  <will.newton@linaro.org>
+
+	* malloc/malloc.c [!MALLOC_DEBUG]: #define MALLOC_DEBUG
+	to zero if it is not defined elsewhere.  (mtrim): Test
+	the value of MALLOC_DEBUG with #if rather than #ifdef.
+
 2014-04-10 Torvald Riegel  <triegel@redhat.com>
 
 	* benchtests/pthread_once-inputs: New file.