From: Ingo Ruhnke Date: Sun, 3 Aug 2014 04:00:20 +0000 (+0200) Subject: Fixed compiler warnings X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=569be868ef7ced9e1ef24e0c08b8fa6e787cf7f0;p=supertux.git Fixed compiler warnings --- diff --git a/src/lisp/parser.cpp b/src/lisp/parser.cpp index f9759dcb5..701091baf 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 5958a92ae..3cd091234 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(), ""); }