This is the mail archive of the
libc-alpha@sources.redhat.com
mailing list for the glibc project.
Re: gcc-4.0 warning building glibc-2.3-20050307: "warning: left-handoperand of comma expression has no effect"
- From: Roland McGrath <roland at redhat dot com>
- To: Dan Kegel <dank at kegel dot com>
- Cc: libc-alpha at sources dot redhat dot com
- Date: Mon, 21 Mar 2005 23:04:56 -0800
- Subject: Re: gcc-4.0 warning building glibc-2.3-20050307: "warning: left-handoperand of comma expression has no effect"
> Has a gcc bug been filed already?
I can't find one in gcc bugzilla and probably that means I never filed it.
The bug is in handling ((void) foo, bar) expressions, a common usage in
macros to evaluate ignored arguments for side effects and "unused variable"
warning elimitation.