[Bug c/77876] -Wbool-operation rejects useful code involving '~'
mpolacek at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Tue Aug 9 19:15:55 GMT 2022
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77876
Marek Polacek <mpolacek at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |NEW
Assignee|mpolacek at gcc dot gnu.org |unassigned at gcc dot gnu.org
--- Comment #2 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
Clearly I never got to this PR. clang also issues the warning, and I think
it'd be better to simply use '!' rather than '~'. I have no plans to change
the warning, sorry.
More information about the Gcc-bugs
mailing list