On 09/24/2012 02:44 PM, Kornel Benko wrote:

Am Montag, 24. September 2012 um 14:10:33, schrieb Richard Heck <rgh...@lyx.org>

> On 09/24/2012 01:07 PM, Pavel Sanda wrote:

> > Stephan Witt wrote:

> >> -bool Messages::available() const

> >> +bool Messages::available(string const & c)

> >> {

> >> + (void)c;

> >> return false;

> >> }

> > Why this (void)c; construct?

> >

> Crushes an "unused variable" warning.

>

> rh

Why not

bool Messages::available(string const & ) { ... }

Yes, you could also do it that way. He probably wanted to keep the signature the same as in the "real" routine.

rh

Reply via email to