From 4cc5e42562402f4aed54533c78655d8ed68b6de3 Mon Sep 17 00:00:00 2001 From: Rochet2 Date: Wed, 12 Apr 2017 23:20:27 +0300 Subject: [PATCH] fix clang warnings Wundefined-var-template --- ElunaTemplate.h | 3 +++ LuaFunctions.cpp | 3 --- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/ElunaTemplate.h b/ElunaTemplate.h index d0bb6b8..b2dc902 100644 --- a/ElunaTemplate.h +++ b/ElunaTemplate.h @@ -401,4 +401,7 @@ ElunaObject::ElunaObject(T * obj, bool manageMemory) : _isvalid(false), _invalid SetValid(true); } +template const char* ElunaTemplate::tname = NULL; +template bool ElunaTemplate::manageMemory = false; + #endif diff --git a/LuaFunctions.cpp b/LuaFunctions.cpp index 075bbaa..e8cbb66 100644 --- a/LuaFunctions.cpp +++ b/LuaFunctions.cpp @@ -1263,9 +1263,6 @@ ElunaRegister BattleGroundMethods[] = { NULL, NULL } }; -template const char* ElunaTemplate::tname = NULL; -template bool ElunaTemplate::manageMemory = false; - #if (!defined(TBC) && !defined(CLASSIC)) // fix compile error about accessing vehicle destructor template<> int ElunaTemplate::CollectGarbage(lua_State* L)