sniper Sun Aug 10 21:55:08 2003 EDT
Modified files: (Branch: PHP_4_3)
/php-src/ext/ming ming.c
Log:
MFH: fix compile warnings about unused variables
Index: php-src/ext/ming/ming.c
diff -u php-src/ext/ming/ming.c:1.42.2.8 php-src/ext/ming/ming.c:1.42.2.9
--- php-src/ext/ming/ming.c:1.42.2.8 Mon Jul 14 12:02:29 2003
+++ php-src/ext/ming/ming.c Sun Aug 10 21:55:07 2003
@@ -17,7 +17,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: ming.c,v 1.42.2.8 2003/07/14 16:02:29 sniper Exp $ */
+/* $Id: ming.c,v 1.42.2.9 2003/08/11 01:55:07 sniper Exp $ */
#ifdef HAVE_CONFIG_H
#include "config.h"
@@ -1440,11 +1440,11 @@
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 @@
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 @@
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;
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php