Jean-Marc Lasgouttes wrote:
[EMAIL PROTECTED] writes:
                bool dummy = conv.To->dummy() && conv.to != "program";
-               if (!dummy)
+               if (!dummy) {
                        LYXERR(Debug::FILES) << "Converting from  "
                               << conv.from << " to " << conv.to << endl;
+               }
                infile = outfile;

So the code is like

   if (!dummy)
      if (!lyxerr.debugging(Debug::FILES)) ; else lyxerr << "Converting from  "
                               << conv.from << " to " << conv.to << endl;

Isn't there some documented trick that avoids this warning? Having to
add braces around the second if is not nice.

What about enclosing the macro with {}?

{if (!lyxerr.debugging(Debug::FILES)) ; else lyxerr << "Converting from  "
>                           << conv.from << " to " << conv.to << endl; }

Abdel.

Reply via email to