[hatari-devel] gcc warnings during compilation

npomarede at corp.free.fr npomarede at corp.free.fr
Sat Mar 13 19:43:34 CET 2010


On Sat, 13 Mar 2010, Eero Tamminen wrote:

>> Any idea on how to remove these (harmless) warnings ?
>>
>> I'm compiling with : -Wall -Wwrite-strings -Wsign-compare
>> -Wmissing-prototypes -Wstrict-prototypes -Wcast-qual -Wbad-function-cast
>> -Wpointer-arith  -O3
>
> Either don't use -O3 (warnings don't come with -O2), or use a version of GCC
> that doesn't show bogus warnings.  -O3 enables several additional gcc
> optimizations, you might add the specific options you're interested about
> on top of -O2 too.
>
> You might also check gcc bugzilla and/or file the bogus warnings as bug
> there.

I didn't remember it was discussed earlier ; in my case, I use gcc 4.4.3 
which I think is the latest available.
As for the -O3 it's picked automatically by cmake in my case.

Anyway, if this just appear in -O3 that's fine, as this is clearly not a 
bug in Hatari's code in the end.


Nicolas



More information about the hatari-devel mailing list