1
0
Fork 0

remove warnings

git-svn-id: svn://svn.lighttpd.net/xcache/trunk@295 c26eb9a1-5813-0410-bd6c-c2e55f420ca7
This commit is contained in:
Xuefer 2006-12-03 01:48:53 +00:00
parent 4c1af68f24
commit c78b30ab6d
4 changed files with 5 additions and 4 deletions

View File

@ -88,7 +88,7 @@ static void xc_dprint_indent(int indent) /* {{{ */
/* }}} */
static void xc_dprint_str_len(const char *str, int len) /* {{{ */
{
const unsigned char *p = str;
const unsigned char *p = (const unsigned char *) str;
int i;
for (i = 0; i < len; i ++) {
if (p[i] < 32 || p[i] == 127) {

View File

@ -45,7 +45,7 @@ define(`ALLOC', `
unsigned long atline = (unsigned long) xc_stack_pop(&processor->allocsizes);
unsigned long real = SIZE;
if (expect != real) {
fprintf(stderr, "mismatch `$@' at line %d(was %d): real %lu - expect %lu = %l\n", __LINE__, atline, real, expect, real - expect);
fprintf(stderr, "mismatch `$@' at line %d(was %lu): real %lu - expect %lu = %lu\n", __LINE__, atline, real, expect, real - expect);
}
}
}')

View File

@ -279,7 +279,6 @@ int xc_undo_fix_opcode(zend_op_array *op_array TSRMLS_DC) /* {{{ */
int xc_foreach_early_binding_class(zend_op_array *op_array, void (*callback)(zend_op *opline, int oplineno, void *data TSRMLS_DC), void *data TSRMLS_DC) /* {{{ */
{
zend_op *opline, *begin, *end, *next = NULL;
xc_cest_t cest;
opline = begin = op_array->opcodes;
end = opline + op_array->last;
@ -324,11 +323,12 @@ int xc_foreach_early_binding_class(zend_op_array *op_array, void (*callback)(zen
opline ++;
}
}
return SUCCESS;
}
/* }}} */
static int xc_do_early_binding(zend_op_array *op_array, HashTable *class_table, int oplineno TSRMLS_DC) /* {{{ */
{
zend_op *opline, *opcodes;
zend_op *opline;
#ifdef DEBUG
fprintf(stderr, "binding %d\n", oplineno);

View File

@ -2387,6 +2387,7 @@ static int xc_zend_remove_extension(zend_extension *extension) /* {{{ */
zend_extensions.dtor = NULL;
zend_llist_del_element(&zend_extensions, extension, xc_ptr_compare_func);
zend_extensions.dtor = dtor;
return SUCCESS;
}
/* }}} */
static int xc_config_hash(xc_hash_t *p, char *name, char *default_value) /* {{{ */