This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
gcc-2.95.2: "(unsigned char) < 256"
- To: bug-gcc at gnu dot org
- Subject: gcc-2.95.2: "(unsigned char) < 256"
- From: "Ulrich Windl" <Ulrich dot Windl at rz dot uni-regensburg dot de>
- Date: Mon, 26 Mar 2001 14:57:48 +0200
- Organization: Universitaet Regensburg, Klinikum
Hello,
I just made a stupid mistake, finally wondering whether gcc -Wall could
catch it:
unsigned char uc;
for ( uc = 0; uc < 256; ++uc )
...;
Of course, the loop ran forever.
However for "(unsigned" < 0", gcc emits a warning. Can it be done for
my case, too?
Regards,
Ulrich