Browse Source

refactor: disable expected shadow warning

git-svn-id: svn://svn.lighttpd.net/xcache/trunk@1050 c26eb9a1-5813-0410-bd6c-c2e55f420ca7
3.0
Xuefer 9 years ago
parent
commit
186c10e279
  1. 10
      xcache.c

10
xcache.c

@ -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