From 66afdc5b4a5745f8378a84eb636370306af48b35 Mon Sep 17 00:00:00 2001 From: Richard Heck Date: Wed, 21 Dec 2011 15:08:30 +0000 Subject: [PATCH] Warnings. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_2_0_X@40537 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/insets/InsetLayout.cpp | 1 - src/insets/InsetListings.cpp | 6 ++---- 2 files changed, 2 insertions(+), 5 deletions(-) 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; diff --git a/src/insets/InsetListings.cpp b/src/insets/InsetListings.cpp index cb3e9b56cb..6156f8883f 100644 --- a/src/insets/InsetListings.cpp +++ b/src/insets/InsetListings.cpp @@ -158,8 +158,7 @@ void InsetListings::latex(otexstream & os, OutputParams const & runparams) const (outer_language->encoding()->hasFixedWidth()) ? outer_language->encoding() : encodings.fromLyXName("iso8859-1"); - pair const c = switchEncoding(os.os(), - buffer().params(), runparams, *lstenc, true); + switchEncoding(os.os(), buffer().params(), runparams, *lstenc, true); runparams.encoding = lstenc; encoding_switched = true; } @@ -250,8 +249,7 @@ void InsetListings::latex(otexstream & os, OutputParams const & runparams) const if (encoding_switched){ // Switch back - pair const c = switchEncoding(os.os(), - buffer().params(), runparams, *save_enc, true); + switchEncoding(os.os(), buffer().params(), runparams, *save_enc, true); runparams.encoding = save_enc; }