samba-bugs@samba.org
2008-Feb-27 19:22 UTC
DO NOT REPLY [Bug 5287] New: FreeBSD pre10 compilation warnings report
https://bugzilla.samba.org/show_bug.cgi?id=5287 Summary: FreeBSD pre10 compilation warnings report Product: rsync Version: 3.0.0 Platform: x86 OS/Version: FreeBSD Status: NEW Severity: minor Priority: P3 Component: core AssignedTo: wayned@samba.org ReportedBy: 14709c93@mailinator.com QAContact: rsync-qa@samba.org rsync typically configures and compiles very cleanly. This is an FYI for anyone that may like to tidy up any valid issues before the release of 3.0.0. FreeBSD RELENG_4 untar 3.0.0pre10 ./configure yields these arguments gcc -I. -I. -g -O2 -DHAVE_CONFIG_H -Wall -W -I./popt -c <.c> -o <.o> make rsync.c: In function `read_ndx_and_attrs': rsync.c:213: warning: `flist' might be used uninitialized in this function rsync.c: In function `set_file_attrs': rsync.c:343: warning: unused parameter `fnamecmp' generator.c: In function `delete_item': generator.c:212: warning: `desc' might be used uninitialized in this function generator.c: In function `unchanged_attrs': generator.c:555: warning: unused parameter `fname' generator.c: In function `itemize': generator.c:597: warning: unused parameter `fnamecmp' generator.c: In function `try_dests_non': generator.c:1021: warning: `type' might be used uninitialized in this function sender.c: In function `write_ndx_and_attrs': sender.c:150: warning: unused parameter `fname' sender.c:150: warning: unused parameter `file' io.c: In function `mplex_write': io.c:468: warning: unused parameter `convert' uidlist.c: In function `match_uid': uidlist.c:210: warning: comparison between signed and unsigned uidlist.c: In function `match_gid': uidlist.c:222: warning: comparison between signed and unsigned uidlist.c:226: warning: comparison between signed and unsigned uidlist.c: In function `add_uid': uidlist.c:249: warning: comparison between signed and unsigned uidlist.c: In function `add_gid': uidlist.c:267: warning: comparison between signed and unsigned -- Configure bugmail: https://bugzilla.samba.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the QA contact for the bug, or are watching the QA contact.
samba-bugs@samba.org
2008-Feb-28 22:29 UTC
DO NOT REPLY [Bug 5287] FreeBSD pre10 compilation warnings report
https://bugzilla.samba.org/show_bug.cgi?id=5287 wayned@samba.org changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |WONTFIX ------- Comment #1 from wayned@samba.org 2008-02-28 16:29 CST ------- The "might be used uninitialized" warnings are because your gcc is not understanding that exit_cleanup() does not return. If your gcc is <= 2, then the NORETURN modifier won't be defined, and you'd see those warnings. If you want to verify this, it might help to tweak the following define in rsync.h to add an exit(42) call at the end (separated by a comma, not a semicolon): #define exit_cleanup(code) _exit_cleanup(code, __FILE__, __LINE__), exit(42) The unused parameter warnings are because you don't have ACL and xattr support enabled. I'm not inclined to try to silence those at the moment. (I might do so eventually.) The "comparison between signed and unsigned" warnings have already been fixed in the dev version (in the git repository and nighty tar files). Thanks for testing! -- Configure bugmail: https://bugzilla.samba.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the QA contact for the bug, or are watching the QA contact.
samba-bugs@samba.org
2008-Mar-17 17:00 UTC
DO NOT REPLY [Bug 5287] FreeBSD pre10 compilation warnings report
https://bugzilla.samba.org/show_bug.cgi?id=5287 ------- Comment #2 from wayned@samba.org 2008-03-17 12:00 CST ------- As I alluded to in my prior comment, I did some work to silence the "unused parameter" warnings. They should be gone on any compiler that supports the -Wno-unused-parameter option (i.e. modern gcc versions). That flag is added anytime one of the larger features is disabled (ACLs, xattrs, iconv), but is not added when doing a fullly-enabled build. So, the only remaining warnings should be the "might be used uninitialized" warnings, and those would also go away with a more modern gcc. -- Configure bugmail: https://bugzilla.samba.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the QA contact for the bug, or are watching the QA contact.
Seemingly Similar Threads
- DO NOT REPLY [Bug 5022] New: FreeBSD 4.11 - Compilation Fails - uidlist.c - gcc2 / gcc3
- [Bug 8073] New: Regress: 3.0.8 cannot compile on freebsd
- Added functionality --compare-file and --compare-auto
- [PATCH] Add --omit-{device,special}-times options
- rsync filename heuristics