Skip to content

Commit 3795f9d

Browse files
committed
MFH(r-1.7) Silence compiler warning: unused variable
1 parent 0e39698 commit 3795f9d

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

sapi/embed/php_embed.h

+9-3
Original file line numberDiff line numberDiff line change
@@ -32,18 +32,24 @@
3232
#define PTSRMLS_DC , PTSRMLS_D
3333
#define PTSRMLS_C &tsrm_ls
3434
#define PTSRMLS_CC , PTSRMLS_C
35+
36+
#define PHP_EMBED_START_BLOCK(x,y) { \
37+
void ***tsrm_ls; \
38+
php_embed_init(x, y PTSRMLS_CC); \
39+
zend_first_try {
40+
3541
#else
3642
#define PTSRMLS_D
3743
#define PTSRMLS_DC
3844
#define PTSRMLS_C
3945
#define PTSRMLS_CC
40-
#endif
4146

4247
#define PHP_EMBED_START_BLOCK(x,y) { \
43-
void ***tsrm_ls; \
44-
php_embed_init(x, y PTSRMLS_CC); \
48+
php_embed_init(x, y); \
4549
zend_first_try {
4650

51+
#endif
52+
4753
#define PHP_EMBED_END_BLOCK() \
4854
} zend_catch { \
4955
/* int exit_status = EG(exit_status); */ \

0 commit comments

Comments
 (0)