- get rid of compilation warnings

pp [2005-06-20 18:17:03]
- get rid of compilation warnings


git-svn-id: https://siedziba.pl:790/svn/repos/php-imlib/trunk@194 455248ca-bdda-0310-9134-f4ebb693071a
Filename
filters/php_bumpmap.c
filters/php_colormatrix.c
filters/php_colormod.c
filters/php_hsbcolor.c
filters/php_testfilter.c
diff --git a/filters/php_bumpmap.c b/filters/php_bumpmap.c
index 3813da3..6910f82 100644
--- a/filters/php_bumpmap.c
+++ b/filters/php_bumpmap.c
@@ -70,12 +70,12 @@ _php_bumpmap_exec(char* filter, HashTable* params,int index)
 				{
 					char val[32];
 					zval **data;
-					zend_hash_get_current_data_ex(params,&data,&pos);
+					zend_hash_get_current_data_ex(params,(void**)&data,&pos);

 					switch(paramtypes[index])
 					{
 					    case 'I':
-						    im=_php_imlib_get_image(data);
+						    im=(Imlib_Image)_php_imlib_get_image(data); /* Why is cast to Imlib_Image needed? */
 						    script=_php_bumpmap_stradd(script,"map=[]");
 						    break;
 					    case 'i':
diff --git a/filters/php_colormatrix.c b/filters/php_colormatrix.c
index 802550c..1cd28b2 100644
--- a/filters/php_colormatrix.c
+++ b/filters/php_colormatrix.c
@@ -286,7 +286,7 @@ static void _php_colormatrix_usermat(double mat[16], zval** data)
 		{
 			if ((num_index>=0)&&(num_index<16))
 			{
-				zend_hash_get_current_data_ex(mat_ht,&value,&pos);
+				zend_hash_get_current_data_ex(mat_ht,(void**)&value,&pos);
 				convert_to_double_ex(value);
 				mat[num_index]=Z_DVAL_PP(value);
 			}
@@ -321,7 +321,7 @@ _php_colormatrix_exec(Imlib_Image im, char* filter, HashTable* params)
         if (retval==HASH_KEY_IS_STRING)
         {
           zval **data;
-          zend_hash_get_current_data_ex(params,&data,&pos);
+          zend_hash_get_current_data_ex(params,(void**)&data,&pos);

           if (!strcmp(str_index,"x")) { convert_to_long_ex(data); x=Z_LVAL_PP(data); };
           if (!strcmp(str_index,"y")) { convert_to_long_ex(data); y=Z_LVAL_PP(data); };
diff --git a/filters/php_colormod.c b/filters/php_colormod.c
index b23c51a..c240f1f 100644
--- a/filters/php_colormod.c
+++ b/filters/php_colormod.c
@@ -54,7 +54,7 @@ _php_colormod_exec(HashTable* params)
 				{
 					char val[32];
 					zval **data;
-					zend_hash_get_current_data_ex(params,&data,&pos);
+					zend_hash_get_current_data_ex(params,(void**)&data,&pos);

 					switch(paramtypes[index])
 					{
diff --git a/filters/php_hsbcolor.c b/filters/php_hsbcolor.c
index a584031..577afc2 100644
--- a/filters/php_hsbcolor.c
+++ b/filters/php_hsbcolor.c
@@ -122,7 +122,7 @@ _php_hsbcolor_exec(Imlib_Image im, HashTable* params)
         if (retval==HASH_KEY_IS_STRING)
         {
           zval **data;
-          zend_hash_get_current_data_ex(params,&data,&pos);
+          zend_hash_get_current_data_ex(params,(void*)&data,&pos);

           if (!strcmp(str_index,"x")) { convert_to_long_ex(data); x=Z_LVAL_PP(data); };
           if (!strcmp(str_index,"y")) { convert_to_long_ex(data); y=Z_LVAL_PP(data); };
diff --git a/filters/php_testfilter.c b/filters/php_testfilter.c
index dc3d8c8..ca844b3 100644
--- a/filters/php_testfilter.c
+++ b/filters/php_testfilter.c
@@ -39,7 +39,7 @@ _php_testfilter_tint(Imlib_Image im, HashTable* params)
         if (retval==HASH_KEY_IS_STRING)
         {
           zval **data;
-          zend_hash_get_current_data_ex(params,&data,&pos);
+          zend_hash_get_current_data_ex(params,(void*)&data,&pos);
           convert_to_long_ex(data);
           if (!strcmp(str_index,"red")) r=Z_LVAL_PP(data);
           if (!strcmp(str_index,"blue")) b=Z_LVAL_PP(data);
ViewGit