From 626d14aa54fbf76df234298406a2d5ce7a3e3659 Mon Sep 17 00:00:00 2001 From: Jean-Marc Lasgouttes Date: Tue, 9 Jun 2009 13:17:07 +0000 Subject: [PATCH] fix a few compiler warnings git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30032 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/frontends/qt4/GuiToc.cpp | 2 +- src/insets/InsetLabel.cpp | 2 +- src/output_xhtml.cpp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/frontends/qt4/GuiToc.cpp b/src/frontends/qt4/GuiToc.cpp index 9a22e81df7..787bbb7058 100644 --- a/src/frontends/qt4/GuiToc.cpp +++ b/src/frontends/qt4/GuiToc.cpp @@ -92,7 +92,7 @@ void GuiToc::enableView(bool enable) } -void GuiToc::closeEvent(QCloseEvent * event) +void GuiToc::closeEvent(QCloseEvent * /*event*/) { is_closing_ = true; ((GuiView *)parent())->updateToolbars(); diff --git a/src/insets/InsetLabel.cpp b/src/insets/InsetLabel.cpp index 9435c3f040..9de72d9701 100644 --- a/src/insets/InsetLabel.cpp +++ b/src/insets/InsetLabel.cpp @@ -218,7 +218,7 @@ int InsetLabel::docbook(odocstream & os, OutputParams const & runparams) const } -int InsetLabel::xhtml(odocstream & os, OutputParams const & runparams) const +int InsetLabel::xhtml(odocstream & os, OutputParams const & /*runparams*/) const { // FIXME Does this need to be escaped? os << ""; diff --git a/src/output_xhtml.cpp b/src/output_xhtml.cpp index 5021d4bac0..62a5ee8046 100644 --- a/src/output_xhtml.cpp +++ b/src/output_xhtml.cpp @@ -253,7 +253,7 @@ ParagraphList::const_iterator makeEnvironment(Buffer const & buf, lastlay = 0; } bool const labelfirst = cstyle.htmllabelfirst(); - bool item_tag_opened; + bool item_tag_opened = false; if (!labelfirst) item_tag_opened = openItemTag(os, cstyle); if (cstyle.labeltype == LABEL_MANUAL) { -- 2.39.2