summaryrefslogtreecommitdiff
path: root/Zend/zend_alloc.c
diff options
context:
space:
mode:
authorGeorg Richter <georg@php.net>2003-09-25 15:54:17 +0000
committerGeorg Richter <georg@php.net>2003-09-25 15:54:17 +0000
commit47f6dc77c58dc2cfaade9e7e8ee4fa580aecbccf (patch)
tree32fc378dae44a19ff4901f8d25a08b455b3f4e58 /Zend/zend_alloc.c
parent664078c100f1557bff5fb397bc33eacef01d08af (diff)
downloadphp-git-47f6dc77c58dc2cfaade9e7e8ee4fa580aecbccf.tar.gz
fixed compiler warning
removed dead code
Diffstat (limited to 'Zend/zend_alloc.c')
-rw-r--r--Zend/zend_alloc.c8
1 files changed, 1 insertions, 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");