com php-src: Silence unused variable warning: sapi/cli/php_cl i.c
| From: | Reeze Xia | Date: | Fri, 13 Feb 2015 10:13:19 +0000 |
| Subject: | com php-src: Silence unused variable warning: sapi/cli/php_cl i.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-84854@lists.php.net to get a copy of this message | ||
Commit: bb2091704922599c88cc18e17931004f7a670600
Author: Reeze Xia <reeze@php.net> Fri, 13 Feb 2015 10:13:19 +0000
Parents: 46d957294599abee450b893b6bc4275b27954e30
Branches: master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=bb2091704922599c88cc18e17931004f7a670600
Log:
Silence unused variable warning
Changed paths:
M sapi/cli/php_cli.c
Diff:
diff --git a/sapi/cli/php_cli.c b/sapi/cli/php_cli.c
index 8a8e113..81eba9a 100644
--- a/sapi/cli/php_cli.c
+++ b/sapi/cli/php_cli.c
@@ -1178,9 +1178,6 @@ int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR
lpCmdLine
int main(int argc, char *argv[])
#endif
{
-#ifdef ZTS
- void ***tsrm_ls;
-#endif
#ifdef PHP_CLI_WIN32_NO_CONSOLE
int argc = __argc;
char **argv = __argv;
@@ -1236,7 +1233,7 @@ int main(int argc, char *argv[])
#ifdef ZTS
tsrm_startup(1, 1, 0, NULL);
- tsrm_ls = ts_resource(0);
+ (void)ts_resource(0);
ZEND_TSRMLS_CACHE_UPDATE;
#endif