This is the mail archive of the
mailing list for the GCC project.
Re: Where did the warning go?
Thank you for your quick and helpful reply, Eljay! I added the
-Wconversion flag, and then the warning appeared as I wanted in all g++
versions on my system :)
So the problem seems to be that my g++-4.1 includes the -Wconversion by
default, while the others don't. Is the set of default warnings known to
vary between versions and platforms?
On Fri, 13 Feb 2009 17:26:17 +0100, John (Eljay) Love-Jensen
Worked for me. I didn't have the exact versions of GCC you were using,
Did you specify -Wconversion?