------- Comment #10 from joseph at codesourcery dot com 2009-07-15 14:15 ------- Subject: Re: -Wconversion: do not warn for operands not larger than target type
On Wed, 15 Jul 2009, ian at airs dot com wrote: > Sure, it can wrap, but -Wconversion is not for wrapping warnings. It's for warnings about implicit conversions changing a value; the arithmetic, in a wider type (deliberately or otherwise), does not wrap, but the value gets changed by the implicit conversion back to char. If the user had explicit casts to int in their arithmetic, there could be no doubt that the warning is appropriate. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40752