From 00fa5f70a129e62006e9e5a9c2c9360db0da45b6 Mon Sep 17 00:00:00 2001
From: Martin Nilsson <nilsson@opera.com>
Date: Sat, 15 Mar 2014 21:18:05 +0100
Subject: [PATCH] Fixed warning with ifdefs.

---
 src/block_allocator.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/src/block_allocator.c b/src/block_allocator.c
index 271c12e376..fc0e8255a5 100644
--- a/src/block_allocator.c
+++ b/src/block_allocator.c
@@ -14,7 +14,9 @@
 #define BA_ONE	((struct ba_block_header *)1)
 #define BA_FLAG_SORTED 1u
 
+#ifdef PIKE_DEBUG
 static void print_allocator(const struct block_allocator * a);
+#endif
 
 #ifdef PIKE_DEBUG
 static void ba_check_ptr(struct block_allocator * a, int page, void * ptr, struct ba_block_header *loc,
@@ -331,6 +333,7 @@ found:
     PIKE_MEMPOOL_FREE(a, ptr, a->l.block_size);
 }
 
+#ifdef PIKE_DEBUG
 static void print_allocator(const struct block_allocator * a) {
     int i;
     struct ba_layout l;
@@ -343,8 +346,6 @@ static void print_allocator(const struct block_allocator * a) {
     }
 }
 
-#ifdef PIKE_DEBUG
-
 #define Pike_nfatal(n) \
     (fprintf(stderr,msg_fatal_error,__FILE__,(long)(n)),debug_fatal)
 
-- 
GitLab