I just noticed that gcc/g++ doesn't give warnings about implicit conversions to int from double, etc., unless you specify a -Wconversion flag. It's not included in -Wall or -Wextra. Seems to me that I used to see those warnings without using that flag, but I'm not sure how long ago that was, or with which compiler.
Just thought I'd mention it...
gcc compiler warnings
Page 1 of 12 Replies - 1627 Views - Last Post: 11 December 2011 - 07:23 PM
Replies To: gcc compiler warnings
#2
Re: gcc compiler warnings
Posted 11 December 2011 - 05:49 PM
My version of gcc seems to indicate that it's not included in -Wall.
Got to admit I've never really delved that deeply into the man page and options; I've just pretty much always used -Wall -pedantic.
gcc version 4.2.1 (Apple Inc. build 5664)
Got to admit I've never really delved that deeply into the man page and options; I've just pretty much always used -Wall -pedantic.
#3
Re: gcc compiler warnings
Posted 11 December 2011 - 07:23 PM
i just click all the stuff in code::blocks. it gives me pretty decent warnings, i might add -Wconversion now that you mention it.
Page 1 of 1
|
|

New Topic/Question
Reply


MultiQuote








|