From 69a993312db5c4cdc18a63b04944ed4d3b9c99c9 Mon Sep 17 00:00:00 2001 From: Jean-Marc Lasgouttes Date: Mon, 17 Oct 2011 08:57:28 +0000 Subject: [PATCH] compilation fix; a couple of warnings git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39873 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/Layout.cpp | 1 + src/frontends/qt4/GuiWorkArea.cpp | 2 +- src/frontends/qt4/Makefile.am | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/Layout.cpp b/src/Layout.cpp index 6861b5b2b2..0faa29e847 100644 --- a/src/Layout.cpp +++ b/src/Layout.cpp @@ -874,6 +874,7 @@ docstring const i18npreamble(Language const * lang, Encoding const & enc, #ifdef TEX2LYX // tex2lyx does not have getMessages() LASSERT(false, /**/); + (void)enc; #else string const langenc = lang->encoding()->iconvName(); string const texenc = lang->encoding()->latexName(); diff --git a/src/frontends/qt4/GuiWorkArea.cpp b/src/frontends/qt4/GuiWorkArea.cpp index 12b7bda117..10075dcf4a 100644 --- a/src/frontends/qt4/GuiWorkArea.cpp +++ b/src/frontends/qt4/GuiWorkArea.cpp @@ -244,7 +244,7 @@ completer_(new GuiCompleter(p, p)) } -GuiWorkArea::GuiWorkArea(QWidget * w) +GuiWorkArea::GuiWorkArea(QWidget * /* w */) : d(new Private(this)) { } diff --git a/src/frontends/qt4/Makefile.am b/src/frontends/qt4/Makefile.am index 73c37eaa66..5473e393f1 100644 --- a/src/frontends/qt4/Makefile.am +++ b/src/frontends/qt4/Makefile.am @@ -167,7 +167,7 @@ NOMOCHEADER = \ GuiImage.h \ GuiKeySymbol.h \ GuiPainter.h \ - GuiWorkArea_Private.cpp \ + GuiWorkArea_Private.h \ LaTeXHighlighter.h \ qt_i18n.h \ qt_helpers.h \ -- 2.39.2