php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #75481 posix.c:956:13: warning: In the GNU C Library, "makedev" is defined
Submitted: 2017-11-03 12:13 UTC Modified: -
Votes:1
Avg. Score:3.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:1 (100.0%)
From: spam2 at rhsoft dot net Assigned:
Status: Closed Package: Compile Warning
PHP Version: 7.1Git-2017-11-03 (Git) OS:
Private report: No CVE-ID: None
 [2017-11-03 12:13 UTC] 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);
             ^~~~~~~~~~~~~~~~~~~~~~~    


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2018-06-19 23:44 UTC] stas@php.net
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
 [2018-06-19 23:44 UTC] stas@php.net
-Status: Open +Status: Closed
 [2018-09-04 03:33 UTC] nikic@php.net
Automatic comment on behalf of peterkokot@gmail.com
Revision: http://git.php.net/?p=php-src.git;a=commit;h=870d893d0bd3f4055ec1d61058aafdadf666b117
Log: Fix bug #75481: makedev warning
 
PHP Copyright © 2001-2022 The PHP Group
All rights reserved.
Last updated: Mon Sep 26 23:05:52 2022 UTC