]> git.lyx.org Git - features.git/commitdiff
Warnings.
authorRichard Heck <rgheck@comcast.net>
Wed, 21 Dec 2011 15:08:30 +0000 (15:08 +0000)
committerRichard Heck <rgheck@comcast.net>
Wed, 21 Dec 2011 15:08:30 +0000 (15:08 +0000)
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
src/insets/InsetListings.cpp

index ee73ba68048ff1fefd53e074bc23297379fdc69b..dee7e29f7a6083ff0fa4caa306c5a018b85b3353 100644 (file)
@@ -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;
index cb3e9b56cbde4774f05a398620a393c25b812b6e..6156f8883fd696f390146d34b821b7c9df9b0240 100644 (file)
@@ -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<bool, int> 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<bool, int> const c = switchEncoding(os.os(),
-                               buffer().params(), runparams, *save_enc, true);
+               switchEncoding(os.os(), buffer().params(), runparams, *save_enc, true);
                runparams.encoding = save_enc;
        }