From: Sara Golemon Date: Thu, 29 Dec 2005 06:00:36 +0000 (+0000) Subject: Silence compiler warning: unused variable X-Git-Tag: RELEASE_1_0_4~199 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e047e8133d8af25a693bb1d08b4995414ee168f3;p=php Silence compiler warning: unused variable --- diff --git a/sapi/embed/php_embed.h b/sapi/embed/php_embed.h index c3ee95d7e1..2099510dea 100644 --- a/sapi/embed/php_embed.h +++ b/sapi/embed/php_embed.h @@ -32,18 +32,25 @@ #define PTSRMLS_DC , PTSRMLS_D #define PTSRMLS_C &tsrm_ls #define PTSRMLS_CC , PTSRMLS_C + +#define PHP_EMBED_START_BLOCK(x,y) { \ + void ***tsrm_ls; \ + php_embed_init(x, y PTSRMLS_CC); \ + zend_first_try { + #else #define PTSRMLS_D #define PTSRMLS_DC #define PTSRMLS_C #define PTSRMLS_CC -#endif #define PHP_EMBED_START_BLOCK(x,y) { \ - void ***tsrm_ls; \ - php_embed_init(x, y PTSRMLS_CC); \ + php_embed_init(x, y); \ zend_first_try { +#endif + + #define PHP_EMBED_END_BLOCK() \ } zend_catch { \ /* int exit_status = EG(exit_status); */ \