Re: inapropriate 'comparison is always false due to limited range of data type' warning

2006-09-29 Thread Jakub Jelinek
On Fri, Sep 29, 2006 at 10:55:27AM -0400, Rodolfo Hansen wrote: > [EMAIL PROTECTED] ~ $ gcc -O0 test.c -o test > test.c: In function 'main': > test.c:5: warning: comparison is always false due to limited range of data > type > > > does not make sense to me in the following code: > > > > #incl

inapropriate 'comparison is always false due to limited range of data type' warning

2006-09-29 Thread Rodolfo Hansen
Hello, [EMAIL PROTECTED] ~ $ gcc -O0 test.c -o test test.c: In function 'main': test.c:5: warning: comparison is always false due to limited range of data type does not make sense to me in the following code: #include int main (char *argv[], int argc) { unsigned short int number; for (nu