On Wed, May 30, 2007 at 06:38:47PM +0000, Angus Leeming wrote: > +#ifdef DEBUG + bool bound = cur.boundary(); + int > rowpos = cur.textRow().pos(); + int pos = cur.pos(); + > bool sep = cur.paragraph().isSeparator(cur.pos() - 1); + bool > newline = cur.paragraph().isNewline(cur.pos() - 1); + bool > linesep = cur.paragraph().isLineSeparator(cur.pos() - 1); +#endif > > Given that nobody seems to have told Stefan how to avoid the error on > MSVC, let me jump in. The trick, Stefan, is to do something like: > > bool bound = ...; (void)bound; > > Given that the meaning of that cast is rather inpenetrable, you might > prefer to use: > > bool bound = ...; boost::unused_variable(bound); > > (The name of the function is probably wrong,
That alone should make you think twice about using it. Casting something to void is a well understood idiom that's available in the core of the language. > but a quick search > through the LyX sources will turn up the correct name.) We are really good at wasting our time, aren't we? Me a wee bit grumpy? Never. I am _really_ grumpy. Andre'