Browse Source

refactor: disable expected shadow warning

git-svn-id: svn://svn.lighttpd.net/xcache/trunk@1050 c26eb9a1-5813-0410-bd6c-c2e55f420ca7
tags/3.0.0-beta1
Xuefer 8 years ago
parent
commit
186c10e279
1 changed files with 7 additions and 3 deletions
  1. +7
    -3
      xcache.c

+ 7
- 3
xcache.c View File

@@ -94,13 +94,17 @@ static int xc_init_constant(int module_number TSRMLS_DC) /* {{{ */
}
/* }}} */
/* {{{ PHP_GINIT_FUNCTION(xcache) */
static
#pragma GCC push_options
#pragma GCC diagnostic ignored "-Wshadow"

#ifdef PHP_GINIT_FUNCTION
PHP_GINIT_FUNCTION(xcache)
static PHP_GINIT_FUNCTION(xcache)
#else
void xc_init_globals(zend_xcache_globals* xcache_globals TSRMLS_DC)
static void xc_init_globals(zend_xcache_globals* xcache_globals TSRMLS_DC)
#endif
{
#pragma GCC pop_options

memset(xcache_globals, 0, sizeof(zend_xcache_globals));

#ifdef HAVE_XCACHE_CONSTANT


Loading…
Cancel
Save