From c78b30ab6dc3dd615e9af59a3c90a34fc117062f Mon Sep 17 00:00:00 2001 From: Xuefer Date: Sun, 3 Dec 2006 01:48:53 +0000 Subject: [PATCH] remove warnings git-svn-id: svn://svn.lighttpd.net/xcache/trunk@295 c26eb9a1-5813-0410-bd6c-c2e55f420ca7 --- processor/head.m4 | 2 +- processor/main.m4 | 2 +- utils.c | 4 ++-- xcache.c | 1 + 4 files changed, 5 insertions(+), 4 deletions(-) diff --git a/processor/head.m4 b/processor/head.m4 index aa5c4d9..96a00dc 100644 --- a/processor/head.m4 +++ b/processor/head.m4 @@ -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) { diff --git a/processor/main.m4 b/processor/main.m4 index 636aae9..3901c6b 100644 --- a/processor/main.m4 +++ b/processor/main.m4 @@ -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); } } }') diff --git a/utils.c b/utils.c index e195e07..281b3d5 100644 --- a/utils.c +++ b/utils.c @@ -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); diff --git a/xcache.c b/xcache.c index 5053b8a..5868c38 100644 --- a/xcache.c +++ b/xcache.c @@ -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) /* {{{ */