Browse Source

refactor: kill unused label

git-svn-id: svn://svn.lighttpd.net/xcache/trunk@1113 c26eb9a1-5813-0410-bd6c-c2e55f420ca7
3.0
Xuefer 9 years ago
parent
commit
731e43f93c
  1. 3
      devel/run
  2. 3
      mod_cacher/xc_cacher.c
  3. 2
      mod_decoder/xc_decoder.c
  4. 2
      mod_encoder/xc_encoder.c
  5. 3
      xcache.c

3
devel/run

@ -143,7 +143,7 @@ phpize)
export PATH=$PHPDIRS/$phpbasename/bin:$PATH
phpize --clean \
&& phpize \
&& CFLAGS="-g -O0 -pedantic-errors -Wno-variadic-macros -Wno-long-long -Wall -Wno-unused -W -Wshadow -Werror=implicit-function-declaration -std=c89 -D_GNU_SOURCE -D_POSIX_SOURCE -Dinline=" ./configure \
&& CFLAGS="-g -O0 -pedantic-errors -Wno-variadic-macros -Wno-long-long -Wall -Wno-unused-parameter -Wno-unused-function -W -Wshadow -Werror=implicit-function-declaration -std=c89 -D_GNU_SOURCE -D_POSIX_SOURCE -Dinline=" ./configure \
--enable-xcache-cacher \
--enable-xcache-optimizer \
--enable-xcache-encoder \
@ -162,6 +162,7 @@ esac
LANG=C $MAKE $MAKEOPTS "${MAKEARGS[@]}" 2>&1 \
| sed -ur \
-e 's#Werror=implicit-function-declaration#We/rror=i/mplicit-function-declaration#' \
-e 's#-pedantic-errors#-pedantic-e/rrors#' \
-e 's#\./xc_processor\.h#'$PWD'/xc_processor.h#' \
-e 's#\./xc_processor\.c\.h#'$PWD'/xc_processor.c.h#' \
| hi error implicit warn FAIL

3
mod_cacher/xc_cacher.c

@ -3336,9 +3336,6 @@ static PHP_MINIT_FUNCTION(xcache_cacher) /* {{{ */
xc_sandbox_module_init(module_number TSRMLS_CC);
return xcache_zend_extension_add(&xc_cacher_zend_extension_entry, 0);
err_init:
return FAILURE;
}
/* }}} */
static PHP_MSHUTDOWN_FUNCTION(xcache_cacher) /* {{{ */

2
mod_decoder/xc_decoder.c

@ -1 +1 @@
static char dummy = 1;
static void dummy() { }

2
mod_encoder/xc_encoder.c

@ -1 +1 @@
static char dummy = 1;
static void dummy() { }

3
xcache.c

@ -708,9 +708,6 @@ static PHP_MINIT_FUNCTION(xcache) /* {{{ */
#endif
return SUCCESS;
err_init:
return FAILURE;
}
/* }}} */
static PHP_MSHUTDOWN_FUNCTION(xcache) /* {{{ */

Loading…
Cancel
Save