amphp / ext-uv

Other
188 stars 28 forks source link

[-Wincompatible-pointer-types] #68

Closed remicollet closed 5 years ago

remicollet commented 5 years ago
/work/GIT/pecl-and-ext/uv/php_uv.c: In function 'php_uv_cast_object':
/work/GIT/pecl-and-ext/uv/php_uv.c:2435:40: warning: passing argument 1 of 'zend_std_cast_object_tostring' from incompatible pointer type [-Wincompatible-pointer-types]
   return zend_std_cast_object_tostring(readobj, writeobj, type);
                                        ^~~~~~~
In file included from /usr/include/php/Zend/zend.h:327,
                 from /usr/include/php/main/php.h:35,
                 from /work/GIT/pecl-and-ext/uv/php_uv.h:32,
                 from /work/GIT/pecl-and-ext/uv/php_uv.c:21:
/usr/include/php/Zend/zend_object_handlers.h:171:50: note: expected 'zval *' {aka 'struct _zval_struct *'} but argument is of type 'zend_object *' {aka 'struct _zend_object *'}
 ZEND_API int zend_std_cast_object_tostring(zval *readobj, zval *writeobj, int type);
                                            ~~~~~~^~~~~~~
bwoebi commented 5 years ago

Ah one more oversight, thanks for the PR!