From ae710903870c48e3ecf2aceeb674bf01952f0a7e Mon Sep 17 00:00:00 2001 From: Ilari Liusvaara Date: Thu, 14 May 2015 19:53:33 +0300 Subject: [PATCH] Fix a compiler warning The warning is false, init of spd can't be avoided if is_string=false. --- src/lua/settings.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lua/settings.cpp b/src/lua/settings.cpp index df0b21a3..84c7ae71 100644 --- a/src/lua/settings.cpp +++ b/src/lua/settings.cpp @@ -66,7 +66,7 @@ namespace int ss_setspeed(lua::state& L, lua::parameters& P) { - double spd; + double spd = 0; std::string special; bool is_string = false; -- 2.11.4.GIT