From: foobar Date: Mon, 11 Aug 2003 01:55:14 +0000 (+0000) Subject: MFH: fix compile warnings about unused variables X-Git-Tag: php-4.3.3RC4~57 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1cab24458bd156b5c7f85d79a90b34c2f47b8b87;p=php MFH: fix compile warnings about unused variables --- 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;