From 090d8305e4e3c3ee085a897b72f2b4708e183eb8 Mon Sep 17 00:00:00 2001 From: Tiger Wang Date: Mon, 5 Oct 2020 13:09:42 +0100 Subject: Warnings improvements * Turn off global-constructors warning. These are needed to implement cRoot signal handler functionality * Add Clang flags based on version lookup instead of a compile test. The CMake config process is single threaded and slow enough already * Reduced GetStackValue verbosity + Clarify EnchantmentLevel, StayCount, AlwaysTicked, ViewDistance signedness + Give SettingsRepositoryInterface a move constructor to simplify main.cpp code - Remove do {} while (false) construction in redstone handler --- src/Server.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/Server.h') diff --git a/src/Server.h b/src/Server.h index 5ac7fc998..290423af5 100644 --- a/src/Server.h +++ b/src/Server.h @@ -206,7 +206,7 @@ private: cCriticalSection m_CSPendingCommands; std::vector> m_PendingCommands; - int m_ClientViewDistance; // The default view distance for clients; settable in Settings.ini + unsigned m_ClientViewDistance; // The default view distance for clients; settable in Settings.ini bool m_bIsConnected; // true - connected false - not connected -- cgit v1.2.3