Bug #75481 [Opn->Csd]: posix.c:956:13: warning: In the GNU C Library, "makedev" is defined
| From: | stas@php.net | Date: | Tue, 19 Jun 2018 23:44:02 +0000 |
| Subject: | Bug #75481 [Opn->Csd]: posix.c:956:13: warning: In the GNU C Library, "makedev" is defined | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-215802@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=75481&edit=1
ID: 75481
Updated by: stas@php.net
Reported by: spam2 at rhsoft dot net
Summary: posix.c:956:13: warning: In the GNU C Library,
"makedev" is defined
-Status: Open
+Status: Closed
Type: Bug
Package: Compile Warning
PHP Version: 7.1Git-2017-11-03 (Git)
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=97f2ce403165285cdbd671069bd0f85910f88be9
Log: Fix bug #75481: makedev warning
Previous Comments:
------------------------------------------------------------------------
[2017-11-03 12:13:35] spam2 at rhsoft dot net
Description:
------------
/home/builduser/rpmbuild/BUILD/php-7.1.11/ext/posix/posix.c: In function
'zif_posix_mknod':
/home/builduser/rpmbuild/BUILD/php-7.1.11/ext/posix/posix.c:956:13: warning: In the GNU C Library,
"makedev" is defined
by <sys/sysmacros.h>. For historical compatibility, it is
currently defined by <sys/types.h> as well, but we plan to
remove this soon. To use "makedev", include <sys/sysmacros.h>
directly. If you did not intend to use a system-defined macro
"makedev", you should undefine it after including <sys/types.h>.
php_dev = makedev(major, minor);
^~~~~~~~~~~~~~~~~~~~~~~
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=75481&edit=1