Segher Boessenkool <[EMAIL PROTECTED]> writes: > Zack Weinberg wrote: >> >> I'm very much in favor of making -Wconversion more useful, but is >> there any reason not to shift the argument-type-conversion warnings >> entirely over to -Wtraditional? Particularly if the warning is >> avoided for prototypes in system headers (so that 'sinf' and the like >> raise no complaints) -- this would, for instance, catch the occasional >> problem we have with arguments of type 'bool' in GCC itself. >> >> Then -Wconversion would be entirely for dubious type conversions on >> assignment. > > This is the intended behaviour of my patch, modulo in my opinion passing > a "too wide" argument to a function is a dubious assignment, too.
I may have misunderstood the effect of your patch - it seemed like you would need to give both -Wconversion and -Wtraditional to get the argument-type conversion warnings. I was suggesting that this should happen with just -Wtraditional. zw