Skip to content

Commit

Permalink
Fix a warning reported by clang
Browse files Browse the repository at this point in the history
minetest/src/script/cpp_api/s_player.h:27:1: warning: struct 'PlayerHPChangeReason' was previously declared as a class [-Wmismatched-tags]
struct PlayerHPChangeReason;
  • Loading branch information
nerzhul committed Mar 29, 2018
1 parent 83fc0fd commit ef979ee
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/script/cpp_api/s_base.h
Expand Up @@ -72,7 +72,7 @@ class IGameDef;
class Environment;
class GUIEngine;
class ServerActiveObject;
class PlayerHPChangeReason;
struct PlayerHPChangeReason;

class ScriptApiBase {
public:
Expand Down Expand Up @@ -146,7 +146,7 @@ class ScriptApiBase {
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

Expand Down

0 comments on commit ef979ee

Please sign in to comment.