On Jun 18, 2004, at 1:10 PM, Angus Leeming wrote:

Bennett Helm wrote:
I get the following compile error:

lyx_gui.C: In function `FuncStatus lyx_gui::getStatus(const
FuncRequest&)':
lyx_gui.C:257: warning: control reaches end of non-void function
lyx_gui.C: At global scope:
lyx_gui.C:260: error: parse error before `return'
lyx_gui.C: In function `const std::string roman_font_name()':
lyx_gui.C:336: error: `use_gui' undeclared (first use this function)
lyx_gui.C:336: error: (Each undeclared identifier is reported only
once
for
    each function it appears in.)
lyx_gui.C: At global scope:
lyx_gui.C:369: error: parse error before `}' token

Remove that line. It appears that Jean-Marc originally bounded the if-block with '{' ... '}' braces, but then removed the preliminary '{'. As this if-block is one line long only, it is reasonable to remove also the trailing '}' brace rather than add back the '{'.

Angus


Done -- deleting the "{" in line 257 fixes the compile problem.

Better yet, the patch does what it should: menus remain, but the right things are greyed out.

Bennett



Reply via email to