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

2003-04-25 Thread Robert Millan
Package: gcc-3.2 Version: 1:3.2.3-0pre9 Severity: wishlist the following code (compiled with -Wall -pedantic) could be considered buggy, because it implicitly converts a signed int to unsigned int when calling a. if you run it, it will print the number 2^32-1 instead of -1. #include stdio.h int

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

2003-04-25 Thread Daniel Jacobowitz
On Fri, Apr 25, 2003 at 05:41:20PM +0200, Robert Millan wrote: Package: gcc-3.2 Version: 1:3.2.3-0pre9 Severity: wishlist the following code (compiled with -Wall -pedantic) could be considered buggy, because it implicitly converts a signed int to unsigned int when calling a. if you run it,

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

2003-04-25 Thread Robert Millan
On Fri, Apr 25, 2003 at 02:18:18PM -0400, Daniel Jacobowitz wrote: Is this roughly what you want: [EMAIL PROTECTED]:~% 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

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

2003-04-25 Thread Daniel Jacobowitz
On Fri, Apr 25, 2003 at 08:40:11PM +0200, Robert Millan wrote: On Fri, Apr 25, 2003 at 02:18:18PM -0400, Daniel Jacobowitz wrote: Is this roughly what you want: [EMAIL PROTECTED]:~% gcc-3.2 -Wall -Wconversion -c c.c c.c: In function `main': c.c:8: warning: passing arg 1 of `a' as

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

2003-04-25 Thread J.H.M. Dassen (Ray)
On Fri, Apr 25, 2003 at 20:40:11 +0200, Robert Millan wrote: that disconcerts me, I thought -Wall would include all warnings. No, it never has and never will. -Wall is probably best described as all warnings the gcc developers consider useful under allmost all circumstances. Ray -- People