]> granicus.if.org Git - php/commitdiff
fixed compiler warning
authorGeorg Richter <georg@php.net>
Thu, 25 Sep 2003 15:54:17 +0000 (15:54 +0000)
committerGeorg Richter <georg@php.net>
Thu, 25 Sep 2003 15:54:17 +0000 (15:54 +0000)
removed dead code

Zend/zend_alloc.c

index 546443ee40c96b2d88f6e829c379e6c1ece54823..13de5cf4727ec06f02ec5f0e4d7e9f3bd4b0ca0c 100644 (file)
@@ -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");