From: Georg Richter Date: Thu, 25 Sep 2003 15:54:17 +0000 (+0000) Subject: fixed compiler warning X-Git-Tag: RELEASE_1_3b2~61 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=47f6dc77c58dc2cfaade9e7e8ee4fa580aecbccf;p=php fixed compiler warning removed dead code --- 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");