1
0

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?
This commit is contained in:
peterbell10
2020-05-10 17:16:49 +01:00
committed by GitHub
parent 154df6b09d
commit 84289a2ba9
9 changed files with 63 additions and 142 deletions

View File

@@ -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