From ef979ee2e9b3109e2b5348014e7ae4b3efdd666c Mon Sep 17 00:00:00 2001 From: Loic Blot Date: Thu, 29 Mar 2018 13:36:01 +0200 Subject: [PATCH] Fix a warning reported by clang minetest/src/script/cpp_api/s_player.h:27:1: warning: struct 'PlayerHPChangeReason' was previously declared as a class [-Wmismatched-tags] struct PlayerHPChangeReason; --- src/script/cpp_api/s_base.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/script/cpp_api/s_base.h b/src/script/cpp_api/s_base.h index dc7b581e3..6f61b6b84 100644 --- a/src/script/cpp_api/s_base.h +++ b/src/script/cpp_api/s_base.h @@ -72,7 +72,7 @@ class IGameDef; class Environment; class GUIEngine; class ServerActiveObject; -class PlayerHPChangeReason; +struct PlayerHPChangeReason; class ScriptApiBase { public: @@ -146,7 +146,7 @@ protected: std::string m_last_run_mod; bool m_secure = false; #ifdef SCRIPTAPI_LOCK_DEBUG - int m_lock_recursion_count; + int m_lock_recursion_count{}; std::thread::id m_owning_thread; #endif -- 2.25.1