From 532731e6f4c0d843d355ff8f2d9f63e4e7854e6a Mon Sep 17 00:00:00 2001 From: bibo38 Date: Thu, 21 Dec 2017 12:36:58 +0100 Subject: 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 --- src/Bindings/LuaFunctions.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/Bindings/LuaFunctions.h') diff --git a/src/Bindings/LuaFunctions.h b/src/Bindings/LuaFunctions.h index b17d7d497..d32322384 100644 --- a/src/Bindings/LuaFunctions.h +++ b/src/Bindings/LuaFunctions.h @@ -6,7 +6,7 @@ inline unsigned int GetTime() { // NB: For caveats, please see https://stackoverflow.com/a/14505248 - return static_cast(std::chrono::seconds(time(0)).count()); + return static_cast(std::chrono::seconds(time(nullptr)).count()); } // tolua_end -- cgit v1.2.3