1
0
Fork 0

refactor: disable expected shadow warning

git-svn-id: svn://svn.lighttpd.net/xcache/trunk@1050 c26eb9a1-5813-0410-bd6c-c2e55f420ca7
3.0
Xuefer 2012-07-26 03:46:37 +00:00
parent ec84974580
commit 186c10e279
1 changed files with 7 additions and 3 deletions

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