[Bug other/58319] explicit cast doesn't disable -Wconversion warning.

paolo.carlini at oracle dot com gcc-bugzilla@gcc.gnu.org
Thu Sep 5 10:36:00 GMT 2013


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

Paolo Carlini <paolo.carlini at oracle dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|---                         |INVALID

--- Comment #1 from Paolo Carlini <paolo.carlini at oracle dot com> ---
Your cast does nothing, because your typeof (or decltype) is just unsigned int.
Given that, the warning makes sense to me and certainly is well known.



More information about the Gcc-bugs mailing list