|
| From: | Paul D. Smith |
| Subject: | [bug #34608] comparison of unsigned expression < 0 is always false |
| Date: | Sun, 13 Nov 2011 22:37:24 +0000 |
| User-agent: | Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.23) Gecko/20110921 Ubuntu/10.10 (maverick) Firefox/3.6.23 |
Follow-up Comment #6, bug #34608 (project make):
This is what I get:
$ cat foo.c
#define INTEGER_TYPE_SIGNED(t) !((t) -1 >= 0)
int foo() { return INTEGER_TYPE_SIGNED(unsigned int); }
$ gcc --version
gcc (Ubuntu/Linaro 4.4.4-14ubuntu5) 4.4.5
$ gcc -Wextra -g -c -o foo.o foo.c
foo.c: In function 'foo':
foo.c:2: warning: comparison of unsigned expression >= 0 is always true
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?34608>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
| [Prev in Thread] | Current Thread | [Next in Thread] |