[Bug c++/40733] No warning is issued when an implicit conversion can lead to a data loss
pinskia at gcc dot gnu dot org
Mon Jul 13 21:42:00 GMT 2009
------- Comment #3 from pinskia at gcc dot gnu dot org 2009-07-13 21:42 -------
(In reply to comment #2)
> -Wall has a very misleading name and should probably be changed to match the
> MSC behaviour (enable all warnings available).
This enables all the warnings about constructions that some users consider
questionable, and that are easy to avoid (or modify to prevent the warning),
even in conjunction with macros. "
hmm, I don't know a better name for -Wall really. Since it enables all
warnings that are questionable and easy to avoid. implicit integer conversion
is easy to avoid but is used all the place in normal C/C++ code. and with
integer promotion happening with simple stuff like a + b, some folks will have
a hard time to understand that happens which is why it is not enabled with
Plus there are style warnings not included in -Wall. I really doubt you want
style warnings enabled with -Wall :).
More information about the Gcc-bugs