+#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, but a quick search through the LyX 
sources will turn up the correct name.)

Angus

Reply via email to