From 1cab24458bd156b5c7f85d79a90b34c2f47b8b87 Mon Sep 17 00:00:00 2001 From: foobar Date: Mon, 11 Aug 2003 01:55:14 +0000 Subject: [PATCH] MFH: fix compile warnings about unused variables --- ext/ming/ming.c | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/ext/ming/ming.c b/ext/ming/ming.c index c0dafd2cb1..b678fee587 100644 --- a/ext/ming/ming.c +++ b/ext/ming/ming.c @@ -1440,11 +1440,11 @@ static void phpByteOutputMethod(byte b, void *data) PHP_FUNCTION(swfmovie_output) { + SWFMovie movie = getMovie(getThis() TSRMLS_CC); +#ifdef HAVE_MING_ZLIB zval **zlimit = NULL; int limit = -1; - SWFMovie movie = getMovie(getThis() TSRMLS_CC); -#ifdef HAVE_MING_ZLIB if (zend_get_parameters_ex(1, &zlimit) == FAILURE) { WRONG_PARAM_COUNT; } @@ -1478,8 +1478,10 @@ static void phpStreamOutputMethod(byte b, void * data) PHP_FUNCTION(swfmovie_saveToFile) { zval **x; +#ifdef HAVE_MING_ZLIB zval **zlimit = NULL; int limit = -1; +#endif SWFMovie movie = getMovie(getThis() TSRMLS_CC); php_stream *what; @@ -1517,8 +1519,11 @@ PHP_FUNCTION(swfmovie_saveToFile) Saves the movie. 'where' can be stream and the movie will be saved there otherwise it is treated as string and written in file with that name */ PHP_FUNCTION(swfmovie_save) { - zval **x, **zlimit = NULL; + zval **x; +#ifdef HAVE_MING_ZLIB + zval **zlimit = NULL; int limit = -1; +#endif long retval; php_stream *stream; -- 2.50.1