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:
@@ -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
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user