https://gcc.gnu.org/bugzilla/show_bug.cgi?id=40752

--- Comment #32 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Jason Merrill <ja...@gcc.gnu.org>:

https://gcc.gnu.org/g:c77074d05691053ee7347d9e44ab89b3adb23fb1

commit r10-6126-gc77074d05691053ee7347d9e44ab89b3adb23fb1
Author: Jason Merrill <ja...@redhat.com>
Date:   Tue Jan 7 12:20:26 2020 -0500

    PR c++/40752 - useless -Wconversion with short +=.

    This is a longstanding issue with lots of duplicates; people are not
    interested in a -Wconversion warning about mychar += 1.  So now that
warning
    depends on -Warith-conversion; otherwise we only warn if operands of the
    arithmetic have conversion issues.

        * c.opt (-Warith-conversion): New.
        * c-warn.c (conversion_warning): Recurse for operands of
        operators.  Only warn about the whole expression with
        -Warith-conversion.

Reply via email to