This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/67764] -Wconversion generates false warnings for bitmask+cast expressions
- From: "manu at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 07 Oct 2015 10:07:46 +0000
- Subject: [Bug c/67764] -Wconversion generates false warnings for bitmask+cast expressions
- Auto-submitted: auto-generated
- References: <bug-67764-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67764
Manuel LÃpez-IbÃÃez <manu at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |manu at gcc dot gnu.org
--- Comment #6 from Manuel LÃpez-IbÃÃez <manu at gcc dot gnu.org> ---
(In reply to Marcin Ålusarz from comment #5)
> Heh, I took a closer look and this bug indeed is a duplicate. -Wconversion
> is quite useless in its current form.
>
> *** This bug has been marked as a duplicate of bug 40752 ***
Being the main author of Wconversion, I do agree with this sentiment. You'll
see there is a patch there to alleviate this issue, but I couldn't manage to
get it approved and now I don't have the time to invest on this issue. If you
want to see this fixed, your best option is to adopt the patch, update it, test
it and try to get it approved. Comparisons with how Clang and other compilers
behave would be useful but they should not be the basis of your argumentation.
When arguing for a change, try to be smart and see the point of view of the
other side and address that convincingly.