From 84289a2ba996b41815f148f27aecc52a7864066d Mon Sep 17 00:00:00 2001 From: peterbell10 Date: Sun, 10 May 2020 17:16:49 +0100 Subject: Cleanup some workarounds and warnings (#4735) * Cleanup thread_local usage in FastRandom * Use constexpr to avoid clang warning * Fix more Wglobal-constructor warnings * Make MSVC happy? --- src/Statistics.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/Statistics.cpp') diff --git a/src/Statistics.cpp b/src/Statistics.cpp index b14d4ccdf..5eabe9b69 100644 --- a/src/Statistics.cpp +++ b/src/Statistics.cpp @@ -6,6 +6,10 @@ #include "Statistics.h" +#ifdef __clang__ + #pragma clang diagnostic push + #pragma clang diagnostic ignored "-Wglobal-constructors" +#endif cStatInfo cStatInfo::ms_Info[statCount] = { @@ -76,6 +80,10 @@ cStatInfo cStatInfo::ms_Info[statCount] = cStatInfo(statTreasureFished, "stat.treasureFished") }; +#ifdef __clang__ + #pragma clang diagnostic pop +#endif + -- cgit v1.2.3