#232 fink -m should report on critical compiler warnings

open
nobody
None
5
2014-08-13
2009-08-31
Jack Howarth
No

I would be very help if the -m mode in fink would check for a few critical compiler warnings and alert the builder that they should be fixed. Specifically, I would have the output from the CompileScript scanned for the text "cast to pointer from integer of different size" and "initialization makes pointer from integer without a cast". If any are reported fink could provide a short useful message like "incorrect cast of pointer from integer should be corrected with addition of cast to uintptr_t".

Discussion

  • Jack Howarth
    Jack Howarth
    2009-08-31

    A good starting list would be to scan for...

    "cast to pointer from integer of different size"
    "initialization makes pointer from integer without a cast"
    "array subscript is above array bounds" (for FSF gcc compilers)
    "dereferencing type-punned pointer will break strict-aliasing rules"
    "type-punning may break strict-aliasing rules"