diff options
| author | Cristallix <Cristallix@users.noreply.github.com> | 2020-04-20 23:59:59 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-04-21 07:59:59 +1000 |
| commit | 4738113f293ac2477a553225a24b6c489c6855f1 (patch) | |
| tree | 1878f27da3cc7e73171c7d905447f1eb9f25cefc /ARMeilleure | |
| parent | 91fa1debd4c5791a12733d75d7ce06a23a1547ff (diff) | |
Suppress warnings from fields never used or never assigned (CS0169 and CS0649) (#919)
* chore : disable unwanted warnings and minor code cleanup
* chore : remove more warnings
* fix : reorder struct correctly
* fix : restore _isKernel and remove useless comment
* fix : copy/paste error
* fix : restore CallMethod call
* fix : whitespace
* chore : clean using
* feat : remove warnings
* fix : simplify warning removal on struct
* fix : revert fields deletion and code clean up
* fix : re-add RE value
* fix : typo
Diffstat (limited to 'ARMeilleure')
| -rw-r--r-- | ARMeilleure/Diagnostics/Logger.cs | 2 | ||||
| -rw-r--r-- | ARMeilleure/Statistics.cs | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/ARMeilleure/Diagnostics/Logger.cs b/ARMeilleure/Diagnostics/Logger.cs index 29d9c79b..e7a0ba5c 100644 --- a/ARMeilleure/Diagnostics/Logger.cs +++ b/ARMeilleure/Diagnostics/Logger.cs @@ -6,9 +6,11 @@ namespace ARMeilleure.Diagnostics { static class Logger { +#pragma warning disable CS0169 private static long _startTime; private static long[] _accumulatedTime; +#pragma warning restore CS0196 static Logger() { diff --git a/ARMeilleure/Statistics.cs b/ARMeilleure/Statistics.cs index e80ee59d..fbc64708 100644 --- a/ARMeilleure/Statistics.cs +++ b/ARMeilleure/Statistics.cs @@ -11,8 +11,10 @@ namespace ARMeilleure { private const int ReportMaxFunctions = 100; +#pragma warning disable CS0169 [ThreadStatic] private static Stopwatch _executionTimer; +#pragma warning restore CS0169 private static ConcurrentDictionary<ulong, long> _ticksPerFunction; |
