From ea50cd71f9dcf43cf75fbb06609d22abec3a1920 Mon Sep 17 00:00:00 2001 From: Richard Heck Date: Fri, 23 Sep 2011 17:51:39 +0000 Subject: [PATCH] Fix a couple unused variable warnings. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39737 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/Lexer.cpp | 4 ++-- src/frontends/qt4/GuiSpellchecker.cpp | 3 +-- src/insets/InsetLayout.cpp | 1 - 3 files changed, 3 insertions(+), 5 deletions(-) diff --git a/src/Lexer.cpp b/src/Lexer.cpp index d824da0364..664e1b9bfb 100644 --- a/src/Lexer.cpp +++ b/src/Lexer.cpp @@ -274,9 +274,9 @@ bool Lexer::Pimpl::setFile(FileName const & filename) // Skip byte order mark. if (is.peek() == 0xef) { - int c = is.get(); + is.get(); if (is.peek() == 0xbb) { - c = is.get(); + is.get(); LASSERT(is.get() == 0xbf, /**/); } else is.unget(); diff --git a/src/frontends/qt4/GuiSpellchecker.cpp b/src/frontends/qt4/GuiSpellchecker.cpp index 5e7305e75a..e3ed0c403f 100644 --- a/src/frontends/qt4/GuiSpellchecker.cpp +++ b/src/frontends/qt4/GuiSpellchecker.cpp @@ -382,9 +382,8 @@ void SpellcheckerWidget::Private::check() docstring_list suggestions; LYXERR(Debug::GUI, "Spellchecker: start check at " << from); - int progress; try { - progress = bv->buffer().spellCheck(from, to, word_lang, suggestions); + bv->buffer().spellCheck(from, to, word_lang, suggestions); } catch (ExceptionMessage const & message) { if (message.type_ == WarningException) { Alert::warning(message.title_, message.details_); diff --git a/src/insets/InsetLayout.cpp b/src/insets/InsetLayout.cpp index ee73ba6804..dee7e29f7a 100644 --- a/src/insets/InsetLayout.cpp +++ b/src/insets/InsetLayout.cpp @@ -159,7 +159,6 @@ bool InsetLayout::read(Lexer & lex, TextClass const & tclass) lex.pushTable(elementTags); - FontInfo font = inherit_font; labelfont_ = inherit_font; bgcolor_ = Color_none; bool getout = false;