summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--c/src/exec/score/src/heap.c13
-rw-r--r--cpukit/score/src/heap.c13
2 files changed, 26 insertions, 0 deletions
diff --git a/c/src/exec/score/src/heap.c b/c/src/exec/score/src/heap.c
index bccd30ccc0..11d8a31cee 100644
--- a/c/src/exec/score/src/heap.c
+++ b/c/src/exec/score/src/heap.c
@@ -418,6 +418,18 @@ boolean _Heap_Free(
* Output parameters: NONE
*/
+#ifndef RTEMS_DEBUG
+
+void _Heap_Walk(
+ Heap_Control *the_heap,
+ int source,
+ boolean do_dump
+)
+{
+}
+
+#else
+
#include <stdio.h>
#include <unistd.h>
@@ -522,3 +534,4 @@ void _Heap_Walk(
if (error)
abort();
}
+#endif
diff --git a/cpukit/score/src/heap.c b/cpukit/score/src/heap.c
index bccd30ccc0..11d8a31cee 100644
--- a/cpukit/score/src/heap.c
+++ b/cpukit/score/src/heap.c
@@ -418,6 +418,18 @@ boolean _Heap_Free(
* Output parameters: NONE
*/
+#ifndef RTEMS_DEBUG
+
+void _Heap_Walk(
+ Heap_Control *the_heap,
+ int source,
+ boolean do_dump
+)
+{
+}
+
+#else
+
#include <stdio.h>
#include <unistd.h>
@@ -522,3 +534,4 @@ void _Heap_Walk(
if (error)
abort();
}
+#endif