diff options
author | Jason Merrill <jason@redhat.com> | 2020-01-07 12:20:26 -0500 |
---|---|---|
committer | Jason Merrill <jason@redhat.com> | 2020-01-21 18:40:19 -0500 |
commit | c77074d05691053ee7347d9e44ab89b3adb23fb1 (patch) | |
tree | 589e55a7c74bb1c0ec4c46ac228f20340158909a /libgomp/affinity.c | |
parent | 731dbfc3f3b586e78f2ccdca24561ea3369c6338 (diff) | |
download | gcc-c77074d05691053ee7347d9e44ab89b3adb23fb1.zip gcc-c77074d05691053ee7347d9e44ab89b3adb23fb1.tar.gz gcc-c77074d05691053ee7347d9e44ab89b3adb23fb1.tar.bz2 |
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.
Diffstat (limited to 'libgomp/affinity.c')
0 files changed, 0 insertions, 0 deletions