1
0
Fork 0

fixed #320: void warning for gcc only pragma

git-svn-id: svn://svn.lighttpd.net/xcache/trunk@1346 c26eb9a1-5813-0410-bd6c-c2e55f420ca7
3.1
Xuefer 2013-08-26 08:04:31 +00:00
parent ace3be11f8
commit c60e172d3a
1 changed files with 4 additions and 0 deletions

View File

@ -114,8 +114,10 @@ static int xc_init_constant(int module_number TSRMLS_DC) /* {{{ */
}
/* }}} */
/* {{{ PHP_GINIT_FUNCTION(xcache) */
#ifdef __GNUC__
#pragma GCC push_options
#pragma GCC diagnostic ignored "-Wshadow"
#endif
#ifdef PHP_GINIT_FUNCTION
static PHP_GINIT_FUNCTION(xcache)
@ -123,7 +125,9 @@ static PHP_GINIT_FUNCTION(xcache)
static void xc_init_globals(zend_xcache_globals* xcache_globals TSRMLS_DC)
#endif
{
#ifdef __GNUC__
#pragma GCC pop_options
#endif
memset(xcache_globals, 0, sizeof(zend_xcache_globals));