[Bug c++/40733] No warning is issued when an implicit conversion can lead to a data loss

photon at seznam dot cz gcc-bugzilla@gcc.gnu.org
Tue Jul 14 15:31:00 GMT 2009



------- Comment #8 from photon at seznam dot cz  2009-07-14 15:31 -------
(In reply to comment #6)
> 
> As for Wall, we have users requesting less warnings from Wall and users
> requesting more. We try to find a balance. But you are free to suggest that
> existing warnings be moved to Wall or Wextra. 

There should be no discussion about adding or removing anything from the -Wall
level. It should include all warnings available. The current -Wall should be
renamed to something like -W3 to prevent misleading users. Each warning should
be assigned a warning level depending on the severity. The user should normally
only need to specify the desired warning level. -Wall should be used only
occasionally to make sure no warning is missed.


> However, first try compiling a
> few big projects (like the kernel, QT libraries and KDE) and check that the
> suggested warning only finds real bugs. Thanks.
> 

Are you suggesting that -Wconversion does not find real bugs?


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40733



More information about the Gcc-bugs mailing list