[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#190757: please add a warning for conversion from "int" to "unsigned int"



On Fri, Apr 25, 2003 at 02:18:18PM -0400, Daniel Jacobowitz wrote:
> 
> Is this roughly what you want:
> drow@nevyn:~% gcc-3.2 -Wall -Wconversion -c c.c
> c.c: In function `main':
> c.c:8: warning: passing arg 1 of `a' as unsigned due to prototype
> c.c:8: warning: negative integer implicitly converted to unsigned type

yes

> It's not part of -Wall because it's too noisy.

that disconcerts me, I thought -Wall would include all warnings. would
you consider including it? it may be noisy but can be easily fixed
with a cast, and the benefit is being safe from a quite common bug.

-- 
Robert Millan

make: *** No rule to make target `war'.  Stop.

Another world is possible - Just say no to genocide



Reply to: