warning during compile php 7.1 ubuntu

Issue #32 wontfix
Muhammad Hussein Fattahizadeh created an issue

/bin/bash /tmp/ev-1.0.4/libtool --mode=compile cc -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 -I/tmp/ev-1.0.4/libev -I. -I/tmp/ev-1.0.4 -DPHP_ATOM_INC -I/tmp/ev-1.0.4/include -I/tmp/ev-1.0.4/main -I/tmp/ev-1.0.4 -I/usr/include/php/20160303 -I/usr/include/php/20160303/main -I/usr/include/php/20160303/TSRM -I/usr/include/php/20160303/Zend -I/usr/include/php/20160303/ext -I/usr/include/php/20160303/ext/date/lib -I/tmp/ev-1.0.4/php7 -DHAVE_CONFIG_H -g -O2 -c /tmp/ev-1.0.4/php7/evwrap.c -o php7/evwrap.lo libtool: compile: cc -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 -I/tmp/ev-1.0.4/libev -I. -I/tmp/ev-1.0.4 -DPHP_ATOM_INC -I/tmp/ev-1.0.4/include -I/tmp/ev-1.0.4/main -I/tmp/ev-1.0.4 -I/usr/include/php/20160303 -I/usr/include/php/20160303/main -I/usr/include/php/20160303/TSRM -I/usr/include/php/20160303/Zend -I/usr/include/php/20160303/ext -I/usr/include/php/20160303/ext/date/lib -I/tmp/ev-1.0.4/php7 -DHAVE_CONFIG_H -g -O2 -c /tmp/ev-1.0.4/php7/evwrap.c -fPIC -DPIC -o php7/.libs/evwrap.o In file included from /tmp/ev-1.0.4/php7/evwrap.c:2:0: /tmp/ev-1.0.4/php7/../libev/ev.c:1825:31: warning: ‘ev_default_loop_ptr’ initialized and declared ‘extern’ EV_API_DECL struct ev_loop ev_default_loop_ptr = 0; / needs to be initialised to make it a definition despite extern */ ^ /tmp/ev-1.0.4/php7/../libev/ev.c: In function ‘evpipe_write’: /tmp/ev-1.0.4/php7/../libev/ev.c:2454:11: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result [-Wunused-result] write (evpipe [1], &counter, sizeof (uint64_t)); ^ /tmp/ev-1.0.4/php7/../libev/ev.c:2466:11: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result [-Wunused-result] write (evpipe [1], &(evpipe [1]), 1); ^ /tmp/ev-1.0.4/php7/../libev/ev.c: In function ‘pipecb’: /tmp/ev-1.0.4/php7/../libev/ev.c:2487:11: warning: ignoring return value of ‘read’, declared with attribute warn_unused_result [-Wunused-result] read (evpipe [1], &counter, sizeof (uint64_t)); ^ /tmp/ev-1.0.4/php7/../libev/ev.c:2501:11: warning: ignoring return value of ‘read’, declared with attribute warn_unused_result [-Wunused-result] read (evpipe [0], &dummy, sizeof (dummy)); ^ /bin/bash /tmp/ev-1.0.4/libtool --mode=compile cc -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 -I/tmp/ev-1.0.4/libev -I. -I/tmp/ev-1.0.4 -DPHP_ATOM_INC -I/tmp/ev-1.0.4/include -I/tmp/ev-1.0.4/main -I/tmp/ev-1.0.4 -I/usr/include/php/20160303 -I/usr/include/php/20160303/main -I/usr/include/php/20160303/TSRM -I/usr/include/php/20160303/Zend -I/usr/include/php/20160303/ext -I/usr/include/php/20160303/ext/date/lib -I/tmp/ev-1.0.4/php7 -DHAVE_CONFIG_H -g -O2 -c /tmp/ev-1.0.4/php7/util.c -o php7/util.lo libtool: compile: cc -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 -I/tmp/ev-1.0.4/libev -I. -I/tmp/ev-1.0.4 -DPHP_ATOM_INC -I/tmp/ev-1.0.4/include -I/tmp/ev-1.0.4/main -I/tmp/ev-1.0.4 -I/usr/include/php/20160303 -I/usr/include/php/20160303/main -I/usr/include/php/20160303/TSRM -I/usr/include/php/20160303/Zend -I/usr/include/php/20160303/ext -I/usr/include/php/20160303/ext/date/lib -I/tmp/ev-1.0.4/php7 -DHAVE_CONFIG_H -g -O2 -c /tmp/ev-1.0.4/php7/util.c -fPIC -DPIC -o php7/.libs/util.o

Comments (2)

  1. Ruslan Osmanov repo owner

    Do not be afraid of the warnings coming from libev source code. As the author of the extension says,

    Remember that warnings are just that: warnings, not errors, or proof of bugs.

    Refer to the libev documentation for explanations.

  2. Log in to comment