Bug #64713 [Opn]: Compilation warnings in fileinfo

From: Date: Fri, 26 Apr 2013 17:09:55 +0000
Subject: Bug #64713 [Opn]: Compilation warnings in fileinfo
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-178657@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=64713&edit=1 ID: 64713 Updated by: sixd@php.net Reported by: sixd@php.net Summary: Compilation warnings in fileinfo Status: Open Type: Bug Package: Filesystem function related PHP Version: 5.5.0beta4 Block user comment: N Private report: N New Comment: And with a git build, this warning occurs: /home/cjones/php-5.5/ext/fileinfo/libmagic/apprentice.c: In function ‘apprentice_load’: /home/cjones/php-5.5/ext/fileinfo/libmagic/apprentice.c:1172: warning: passing argument 1 of ‘_php_stream_opendir’ discards qualifiers from pointer target type /home/cjones/php-5.5/ext/fileinfo/libmagic/apprentice.c:1136: warning: unused variable ‘mfn’ Previous Comments: ------------------------------------------------------------------------ [2013-04-25 18:30:53] sixd@php.net Description: ------------ The libmagic patch could be tidied up to remove these warnings: /home/cjones/Desktop/php-5.5.0beta4/ext/fileinfo/libmagic/magic.c:83:14: warning: ‘free_mlist’ declared ‘static’ but never defined [-Wunused-function] /home/cjones/Desktop/php-5.5.0beta4/ext/fileinfo/libmagic/magic.c:87:21: warning: ‘get_default_magic’ declared ‘static’ but never defined [-Wunused-function] and /home/cjones/Desktop/php-5.5.0beta4/ext/fileinfo/libmagic/print.c: In function ‘file_fmttime’: /home/cjones/Desktop/php-5.5.0beta4/ext/fileinfo/libmagic/print.c:82:3: warning: implicit declaration of function ‘cdf_timestamp_to_timespec’ [-Wimplicit- function-declaration] ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=64713&edit=1

« previous php.bugs (#178657) next »