Wsign-conversion-1.c
187 Bytes
-
PR c++/40752 - useless -Wconversion with short +=. · c77074d0
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.
Jason Merrill committed