Bug #75480 [Opn->Wfx]: magic.c:307:3: warning: argument 1 null where non-null expected [-Wnonnull]
| From: | kalle@php.net | Date: | Fri, 03 Nov 2017 14:58:57 +0000 |
| Subject: | Bug #75480 [Opn->Wfx]: magic.c:307:3: warning: argument 1 null where non-null expected [-Wnonnull] | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-212430@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=75480&edit=1
ID: 75480
Updated by: kalle@php.net
Reported by: spam2 at rhsoft dot net
Summary: magic.c:307:3: warning: argument 1 null where
non-null expected [-Wnonnull]
-Status: Open
+Status: Wont fix
Type: Bug
Package: Compile Warning
PHP Version: 7.1Git-2017-11-03 (Git)
Block user comment: N
Private report: N
New Comment:
This should be reported and fixed upstream in libmagic
Previous Comments:
------------------------------------------------------------------------
[2017-11-03 12:12:13] spam2 at rhsoft dot net
Description:
------------
/home/builduser/rpmbuild/BUILD/php-7.1.11/ext/fileinfo/libmagic/magic.c: In function
'magic_stream':
/home/builduser/rpmbuild/BUILD/php-7.1.11/ext/fileinfo/libmagic/magic.c:307:3: warning: argument 1
null where non-null expected [-Wnonnull]
(void) utimes(name, utsbuf); /* don't care if loses */
^~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /home/builduser/rpmbuild/BUILD/php-7.1.11/main/php_streams.h:25:0,
from /home/builduser/rpmbuild/BUILD/php-7.1.11/main/php.h:405,
from /home/builduser/rpmbuild/BUILD/php-7.1.11/ext/fileinfo/libmagic/config.h:1,
from /home/builduser/rpmbuild/BUILD/php-7.1.11/ext/fileinfo/libmagic/file.h:36,
from /home/builduser/rpmbuild/BUILD/php-7.1.11/ext/fileinfo/libmagic/magic.c:28:
/usr/include/sys/time.h:135:12: note: in a call to function 'utimes' declared here
extern int utimes (const char *__file, const struct timeval __tvp[2])
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=75480&edit=1