kicad-developers team mailing list archive
-
kicad-developers team
-
Mailing list archive
-
Message #03437
gcc warnings vs. gcc versions
-
To:
kicad-devel@xxxxxxxxxxxxxxx
-
From:
Dick Hollenbeck <dick@...>
-
Date:
Sun, 25 Oct 2009 19:48:30 -0500
-
Scanners:
none
-
User-agent:
Thunderbird 2.0.0.23 (X11/20090817)
Isaac is seeing compiler warnings that I am not seeing. He is using gcc
3.4 and I am using gcc 4.3.3
Most of these are demotions of double down to int, which it seems with
the -Wall flag that we are using, should be showing up as a warning, but
in recent compiler versions these are not warnings.
I am alarmed about this.
For example:
int numerator = 2;
int result = numerator/ 1.45;
This should give a warning in my opinion, but on newer compilers it is
not. Anybody know what is happening? I am afraid this is causing
latent warning creep into our code that may eventually resurface when
this gets straightened out in gcc.
Attached is Isaac's warning list.
Anybody following g++ to this extent?
He has offered to go through everything and add the casts to clean up
his warnings, but again, these are warnings that new compilers are not
generating. Fortunately there are not a lot of lines yet.
Thanks,
Dick
--------------020403070902030804030607 Content-Type: application/x-zip-compressed;
name="gcc-warnings-kicad.zip"
Content-Transfer-Encoding: base64
Content-Disposition: inline;
filename="gcc-warnings-kicad.zip"
[Attachment content not displayed.] --------------020403070902030804030607--