Changes between Version 13 and Version 14 of BuildWarnings

Show
Ignore:
Timestamp:
12/31/10 05:17:57 (4 years ago)
Author:
nwellnhof
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • BuildWarnings

    v13 v14  
    11Warnings 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 fix them or update {{{config/auto/warnings.pm}}} to stop complaining about them. 
     2 
     3---- 
     4 
     5nwellnhof: I just fixed a bunch of warnings. This is what I get with Debian unstable, i386, GCC 4.4.5, non-optimized 
     6 
     7The following are caused by -Wbad-function-cast and can be avoided by removing the cast. I'm not sure if this is safe for g++. 
     8 
     9{{{ 
     10src/hash.c: In function ‘Parrot_hash_thaw’: 
     11src/hash.c:681: warning: cast from function call of type ‘INTVAL’ to non-matching type ‘enum <anonymous>’ 
     12src/hash.c:682: warning: cast from function call of type ‘INTVAL’ to non-matching type ‘enum <anonymous>’ 
     13src/nci/signatures.c: In function ‘Parrot_nci_sig_to_pcc’: 
     14src/nci/signatures.c:184: warning: cast from function call of type ‘INTVAL’ to non-matching type ‘enum <anonymous>’ 
     15}}} 
     16 
     17Calls to parrot_hash_put with const keys or values: 
     18 
     19{{{ 
     20src/runcore/main.c: In function ‘parrot_hash_oplib’: 
     21src/runcore/main.c:345: warning: cast discards qualifiers from pointer target type 
     22src/runcore/main.c:348: warning: cast discards qualifiers from pointer target type 
     23src/runcore/main.c:349: warning: cast discards qualifiers from pointer target type 
     24}}} 
     25 
     26These could be fixed with a temporary variable: 
     27 
     28{{{ 
     29./src/pmc/imageiothaw.pmc: In function ‘Parrot_ImageIOThaw_shift_float’: 
     30./src/pmc/imageiothaw.pmc:240: warning: cast discards qualifiers from pointer target type 
     31./src/pmc/imageiothaw.pmc: In function ‘Parrot_ImageIOThaw_shift_integer’: 
     32./src/pmc/imageiothaw.pmc:220: warning: cast discards qualifiers from pointer target type 
     33./src/pmc/imageiothaw.pmc: In function ‘Parrot_ImageIOThaw_shift_string’: 
     34./src/pmc/imageiothaw.pmc:276: warning: cast discards qualifiers from pointer target type 
     35}}} 
    236 
    337----