From 47f6dc77c58dc2cfaade9e7e8ee4fa580aecbccf Mon Sep 17 00:00:00 2001 From: Georg Richter Date: Thu, 25 Sep 2003 15:54:17 +0000 Subject: [PATCH] fixed compiler warning removed dead code --- Zend/zend_alloc.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/Zend/zend_alloc.c b/Zend/zend_alloc.c index 546443ee40..13de5cf472 100644 --- a/Zend/zend_alloc.c +++ b/Zend/zend_alloc.c @@ -720,7 +720,7 @@ ZEND_API int _mem_block_check(void *ptr, int silent ZEND_FILE_LINE_DC ZEND_FILE_ if (valid_beginning && (end_magic != MEM_BLOCK_END_MAGIC)) { char *overflow_ptr, *magic_ptr=(char *) &mem_block_end_magic; int overflows=0; - int i; + long i; if (silent) { return _mem_block_check(ptr, 0 ZEND_FILE_LINE_RELAY_CC ZEND_FILE_LINE_ORIG_RELAY_CC); @@ -750,12 +750,6 @@ ZEND_API int _mem_block_check(void *ptr, int silent ZEND_FILE_LINE_DC ZEND_FILE_ zend_debug_alloc_output("Unknown\n"); } } - - if (had_problems) { - int foo = 5; - - foo += 1; - } if (!silent) { zend_debug_alloc_output("---------------------------------------\n"); -- 2.50.1