This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Warnings
- To: gcc-bugs at gcc dot gnu dot org
- Subject: Warnings
- From: Hidvegi <hzoli at austin dot ibm dot com>
- Date: Thu, 28 Sep 2000 15:35:22 -0500 (CDT)
The function below gives `left-hand operand of comma expression has no
effect' warning when compiled with -Wall. I agree, that this is a
very useful warning, but I have to maintain some old code that
produces tons of these. The docs say that this warning is only
enabled if -W is used, but the truth is, it is on with -Wall. That's
all fine, but how can this be disabled? I did not find any specific
option which controls that.
Zoli
int
foo(void)
{
return 1,2;
}