This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
g++ missing warning
- To: gcc at gcc dot gnu dot org
- Subject: g++ missing warning
- From: nbecker at fred dot net
- Date: 28 Sep 2000 14:59:16 -0400
On gcc-2.95.2
gcc warns, but g++ doesn't, on this code:
int f (int a, int b, int c) {
if (a >= b == c)
return 0;
else
return 1;
}
gcc -c -Wall -W Test.c
Test.c: In function `f':
Test.c:2: warning: comparisons like X<=Y<=Z do not have their mathematical meaning
g++ -c -Wall -W Test.c
[nothing]