Re: Failing build on opensolaris

From: Alex Rousskov <rousskov_at_measurement-factory.com>
Date: Wed, 27 Oct 2010 15:24:35 -0600

On 10/27/2010 12:29 PM, Kinkie wrote:
> The build is failing on
>
> ../../src/comm.cc: In member function `void
> ClientInfo::setWriteLimiter(int, double, double)':
> ../../src/comm.cc:2156: warning: right-hand operand of comma has no effect
>
> That line is
> cbdataReference(quotaQueue);
>
> where in cbdata.h
> #define cbdataReference(var) (cbdataInternalLock(var), var)
>
> Fixing this would seem simple, but it probably breaks encapsulation
> (that "Internal" soeems suspicious to me).
> Anyone willing to take on this, or to share a hint on how to do it?

Please try casting the result of the failing cbdataReference call to
(void). If that does not work, assign the result to a variable, possibly
even quotaQueue itself.

HTH,

Alex.
Received on Wed Oct 27 2010 - 21:24:46 MDT

This archive was generated by hypermail 2.2.0 : Thu Oct 28 2010 - 12:00:08 MDT