From 569be868ef7ced9e1ef24e0c08b8fa6e787cf7f0 Mon Sep 17 00:00:00 2001 From: Ingo Ruhnke Date: Sun, 3 Aug 2014 06:00:20 +0200 Subject: [PATCH] Fixed compiler warnings --- src/lisp/parser.cpp | 4 ++-- src/supertux/main.cpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/lisp/parser.cpp b/src/lisp/parser.cpp index f9759dcb59a..701091baf66 100644 --- a/src/lisp/parser.cpp +++ b/src/lisp/parser.cpp @@ -36,8 +36,8 @@ Parser::Parser(bool translate) : dictionary_manager(0), dictionary(0), token(), - obst(), - searchpath() + searchpath(), + obst() { if(translate) { dictionary_manager = new tinygettext::DictionaryManager(); diff --git a/src/supertux/main.cpp b/src/supertux/main.cpp index 5958a92ae59..3cd091234ca 100644 --- a/src/supertux/main.cpp +++ b/src/supertux/main.cpp @@ -582,7 +582,7 @@ Main::run(int argc, char** argv) // So we simply mount that path here... std::string dir = FileSystem::dirname(g_config->start_level); std::string fileProtocol = "file://"; - int position = dir.find(fileProtocol); + std::string::size_type position = dir.find(fileProtocol); if(position != std::string::npos) { dir = dir.replace(position, fileProtocol.length(), ""); }