Fixed Clang 5.0 compile errors (#4085)

* Fixed Clang 5.0 compile errors

* Fixed wrong comment

* Only disable warnings in Clang 5 or higher

* Added a CMake condition for the Clang 5 no-zero-as-null-pointer-constant warning

* Now using the use_nullptr branch of the Cuberite specific SQLiteCpp fork
This commit is contained in:
bibo38
2017-12-21 11:36:58 +00:00
committed by Alexander Harkness
parent 72616e7eb9
commit 532731e6f4
11 changed files with 39 additions and 8 deletions
+8
View File
@@ -43,6 +43,14 @@
// Hotpatching the Macro to prevent a Clang Warning (0 for pointer used)
#undef lua_tostring
#define lua_tostring(L, i) lua_tolstring(L, (i), nullptr)
////////////////////////////////////////////////////////////////////////////////
// LuaCommandHandler: