Bug #75480 [NEW]: magic.c:307:3: warning: argument 1 null where non-null expected [-Wnonnull]

From: Date: Fri, 03 Nov 2017 12:12:14 +0000
Subject: Bug #75480 [NEW]: magic.c:307:3: warning: argument 1 null where non-null expected [-Wnonnull]
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-212426@lists.php.net to get a copy of this message
From: spam2 at rhsoft dot net Operating system: PHP version: 7.1Git-2017-11-03 (Git) Package: Compile Warning Bug Type: Bug Bug description:magic.c:307:3: warning: argument 1 null where non-null expected [-Wnonnull] 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 bug report at https://bugs.php.net/bug.php?id=75480&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=75480&r=trysnapshot54 Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=75480&r=trysnapshot55 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=75480&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=75480&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=75480&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=75480&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=75480&r=needscript Try newer version: https://bugs.php.net/fix.php?id=75480&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=75480&r=support Expected behavior: https://bugs.php.net/fix.php?id=75480&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=75480&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=75480&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=75480&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=75480&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=75480&r=dst IIS Stability: https://bugs.php.net/fix.php?id=75480&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=75480&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=75480&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=75480&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=75480&r=mysqlcfg

« previous php.bugs (#212426) next »