Bug #74906 [Opn->Csd]: Warning redirecting incorrect #include <sys/errno.h> to <errno.h>
| From: | krakjoe@php.net | Date: | Mon, 17 Jul 2017 05:57:56 +0000 |
| Subject: | Bug #74906 [Opn->Csd]: Warning redirecting incorrect #include <sys/errno.h> to <errno.h> | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-210078@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=74906&edit=1
ID: 74906
Updated by: krakjoe@php.net
Reported by: peterkokot at gmail dot com
Summary: Warning redirecting incorrect #include <sys/errno.h>
to <errno.h>
-Status: Open
+Status: Closed
Type: Bug
Package: SNMP related
Operating System: Alpine 3.6
PHP Version: Irrelevant
Block user comment: N
Private report: N
New Comment:
Automatic comment on behalf of peterkokot@gmail.com
Revision: http://git.php.net/?p=php-src.git;a=commit;h=4d08b9dac0d42d93ed1c6f0617e1426f013b981f
Log: Fixed bug #74906 redirecting incorrect include <sys/errno.h>
Previous Comments:
------------------------------------------------------------------------
[2017-07-11 22:40:39] peterkokot at gmail dot com
Description:
------------
When compiling the errno.h file included in snmp.c file has also include from not standard
sys/errno.h for historic reasons. All other errno.h files included elsewhere in PHP code are
included using <errno.h> which is also POSIX compliant.
Actual result:
--------------
In file included from /build/main/php7.2/src/php-7.2.0alpha3/ext/snmp/snmp.c:51:0:
/usr/include/sys/errno.h:1:2: warning: #warning redirecting incorrect #include <sys/errno.h>
to <errno.h> [-Wcpp]
#warning redirecting incorrect #include <sys/errno.h> to <errno.h>
^~~~~~~
/build/main/php7.2/src/php-7.2.0alpha3/ext/snmp/snmp.c: In function 'zm_startup_snmp':
/build/main/php7.2/src/php-7.2.0alpha3/ext/snmp/snmp.c:2328:34: warning: assignment from
incompatible pointer type [-Wincompatible-pointer-types]
php_snmp_object_handlers.get_gc = php_snmp_get_gc;
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=74906&edit=1