This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Warnings


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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]