Version 3 (modified by coke, 13 years ago) |
---|
Warnings seen during the build don't necessarily warrant tickets of their own, since they aren't breaking the build. However, one of our goals is to have a (nearly) warnings-free build, so if your build has warnings, document them here, and someone may eventually be able to avoid them.
The following warnings appear for me (Infinoid) on x86-64 gentoo linux, but are caused by system headers and thus are not Parrot's fault:
src/thread.c: In function 'pt_thread_join': src/thread.c:1381: warning: suggest braces around empty body in 'do' statement ./gdbmhash.pmc: In function 'Parrot_GDBMHash_get_string_keyed': ./gdbmhash.pmc:238: warning: function call has aggregate value ./gdbmhash.pmc: In function 'Parrot_GDBMHash_get_bool': ./gdbmhash.pmc:176: warning: function call has aggregate value ./gdbmhash.pmc: In function 'Parrot_GDBMHash_get_integer': ./gdbmhash.pmc:150: warning: function call has aggregate value ./gdbmhash.pmc:152: warning: function call has aggregate value
The following warnings are in IMCC, and have never gotten much attention because IMCC will eventually be deprecated:
compilers/imcc/imcparser.c: In function 'yyparse': compilers/imcc/imcparser.c:2848: warning: statement with no effect compilers/imcc/imcparser.c:4938: warning: logical '&&' with non-zero constant wi ll always evaluate as true compilers/imcc/imcparser.c:4941: warning: statement with no effect compilers/imcc/imcparser.c:5098: warning: statement with no effect compilers/imcc/imcparser.c:5102: warning: statement with no effect compilers/imcc/imclexer.c: In function 'yy_get_next_buffer': compilers/imcc/imclexer.c:4165: warning: comparison between signed and unsigned
The following warning is also in IMCC, but is really caused by headerizer not understanding #if blocks:
compilers/imcc/pbc.c:181: warning: 'old_blocks' declared 'static' but never defined
Some OS X specific warnings for use of deprecated system functions. (There's an RT for this one)
config/gen/platform/darwin/dl.c:218: warning: 'NSIsSymbolNameDefined' is deprecated (declared at /usr/include/mach-o/dyld.h:150) config/gen/platform/darwin/dl.c:220: warning: 'NSLookupAndBindSymbol' is deprecated (declared at /usr/include/mach-o/dyld.h:158) config/gen/platform/darwin/dl.c:226: warning: 'NSIsSymbolNameDefinedInImage' is deprecated (declared at /usr/include/mach-o/dyld.h:156)