summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXuefer <xuefer@gmail.com>2014-11-11 14:21:40 +0000
committerXuefer <xuefer@gmail.com>2014-11-11 14:21:40 +0000
commit4bd347e02b7a47b9ba876eaee2f46e4d9f3b614b (patch)
tree995ee316c9b3d7c54df873fbd1a9a066a1a67fdf
parent5eb6e2f585336bcba069db483701508144baa363 (diff)
downloadxcache-4bd347e02b7a47b9ba876eaee2f46e4d9f3b614b.tar.gz
xcache-4bd347e02b7a47b9ba876eaee2f46e4d9f3b614b.zip
kill some warnings
git-svn-id: svn://svn.lighttpd.net/xcache/trunk@1565 c26eb9a1-5813-0410-bd6c-c2e55f420ca7
-rw-r--r--processor/foot.m43
-rw-r--r--xcache.c1
-rw-r--r--xcache/xc_mutex.c1
3 files changed, 4 insertions, 1 deletions
diff --git a/processor/foot.m4 b/processor/foot.m4
index d92d361..9924be0 100644
--- a/processor/foot.m4
+++ b/processor/foot.m4
@@ -121,7 +121,6 @@ dnl }}}
EXPORTED_FUNCTION(`zval *xc_processor_restore_var(zval *dst, const xc_entry_var_t *src, zend_class_entry **index_to_ce TSRMLS_DC)') dnl {{{
{
xc_processor_t processor;
- size_t i;
memset(&processor, 0, sizeof(processor));
processor.handle_reference = src->have_references;
@@ -135,6 +134,7 @@ EXPORTED_FUNCTION(`zval *xc_processor_restore_var(zval *dst, const xc_entry_var_
#ifdef ZEND_ENGINE_2
if (src->objects_count) {
+ zend_uint i;
processor.object_handles = emalloc(sizeof(*processor.object_handles) * src->objects_count);
for (i = 0; i < src->objects_count; ++i) {
zend_object *object = emalloc(sizeof(*object));
@@ -150,6 +150,7 @@ EXPORTED_FUNCTION(`zval *xc_processor_restore_var(zval *dst, const xc_entry_var_
#ifdef ZEND_ENGINE_2
if (src->objects_count) {
+ zend_uint i;
for (i = 0; i < src->objects_count; ++i) {
zend_objects_store_del_ref_by_handle(processor.object_handles[i] TSRMLS_CC);
}
diff --git a/xcache.c b/xcache.c
index 9074e12..3cdc608 100644
--- a/xcache.c
+++ b/xcache.c
@@ -539,6 +539,7 @@ static zend_function_entry xcache_functions[] = /* {{{ */
PHP_FE(xcache_get_op_type, arginfo_xcache_get_op_type)
PHP_FE(xcache_get_data_type, arginfo_xcache_get_data_type)
PHP_FE(xcache_get_opcode, arginfo_xcache_get_opcode)
+ PHP_FE(xcache_get_op_spec, arginfo_xcache_get_op_spec)
PHP_FE(xcache_get_opcode_spec, arginfo_xcache_get_opcode_spec)
PHP_FE(xcache_coredump, arginfo_xcache_coredump)
PHP_FE(xcache_is_autoglobal, arginfo_xcache_is_autoglobal)
diff --git a/xcache/xc_mutex.c b/xcache/xc_mutex.c
index 68dd5e0..c730593 100644
--- a/xcache/xc_mutex.c
+++ b/xcache/xc_mutex.c
@@ -247,6 +247,7 @@ size_t xc_mutex_size(void) /* {{{ */
xc_mutex_t *xc_mutex_init(xc_mutex_t *const shared_mutex, const char *pathname, unsigned char want_inter_process) /* {{{ */
{
xc_mutex_t *mutex = NULL;
+ (void) want_inter_process; /* may be unused */
#ifndef HAVE_FORK
want_inter_process = 0;