Warnings

Hidvegi hzoli@austin.ibm.com
Thu Sep 28 13:35:00 GMT 2000


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;
}


More information about the Gcc-bugs mailing list