29 GCC compiler warnings

View: New views
2 Messages — Rating Filter:   Alert me  

29 GCC compiler warnings

by Joe Bassis :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

I downloaded the SVN on October 2nd. I added quite a few more CFLAGS
to include more warnings and got 29 warnings that are repeated quite a
number of times throughout the compiling process. They are easy fixes
for somebody fluent in C (sadly, not me). In any case, I have seen
many warnings fixed since the last stable release probably due to
compiling with -pedantic CFLAG.

Warning types:

"negative integer implicitly converted to unsigned type"
"function declaration isn’t a prototype"
"no previous prototype"
"redundant redeclaration"
"nested extern declaration"
"comparing floating point with == or != is unsafe"

In the attached file, each warning is separated by an empty line.

My 2 cents.

Regards,
Joe


------------------------------------------------------------------------------
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf
_______________________________________________
gtk-gnutella-users mailing list
gtk-gnutella-users@...
https://lists.sourceforge.net/lists/listinfo/gtk-gnutella-users

attachment0 (7K) Download Attachment

Re: 29 GCC compiler warnings

by Raphael Manfredi :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Quoting Joe Bassis <joe.bassis@...> from ml.softs.gtk-gnutella.users:
:Warning types:
:
:"negative integer implicitly converted to unsigned type"

Fixed.

:"function declaration isn’t a prototype"

Fixed some of them.

:"no previous prototype"

Fixed.

:"redundant redeclaration"

Fixed most of them.

:"nested extern declaration"

Not fixed.  This is harmless.

:"comparing floating point with == or != is unsafe"

Not fixed, could not spot where they occurred (your line numbers and mine
differed somehow).

Raphael

------------------------------------------------------------------------------
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf
_______________________________________________
gtk-gnutella-users mailing list
gtk-gnutella-users@...
https://lists.sourceforge.net/lists/listinfo/gtk-gnutella-users