From 748f72326d9a295958bc9ba63bbb1a5d39030ef7 Mon Sep 17 00:00:00 2001 From: Dr Scofield Date: Fri, 27 Jun 2008 23:03:39 +0000 Subject: last round of warning squashing. calling it a day now. --- ThirdParty/SmartThreadPool/STPPerformanceCounter.cs | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'ThirdParty') diff --git a/ThirdParty/SmartThreadPool/STPPerformanceCounter.cs b/ThirdParty/SmartThreadPool/STPPerformanceCounter.cs index be70aea..077cf17 100644 --- a/ThirdParty/SmartThreadPool/STPPerformanceCounter.cs +++ b/ThirdParty/SmartThreadPool/STPPerformanceCounter.cs @@ -131,13 +131,15 @@ namespace Amib.Threading.Internal // *********** Remark for .NET 2.0 *********** // If you are here, it means you got the warning that this overload // of the method is deprecated in .NET 2.0. To use the correct - // method overload, uncomment the third argument of the method. + // method overload, uncomment the third argument of + // the method. + #pragma warning disable 0618 PerformanceCounterCategory.Create( _stpCategoryName, _stpCategoryHelp, //PerformanceCounterCategoryType.MultiInstance, counters); - + #pragma warning restore 0618 } } @@ -245,7 +247,7 @@ namespace Amib.Threading.Internal public STPInstancePerformanceCounters(string instance) { _pcs = new STPInstancePerformanceCounter[(int)STPPerformanceCounterType.LastCounter]; - STPPerformanceCounters counters = STPPerformanceCounters.Instance; + // STPPerformanceCounters counters = STPPerformanceCounters.Instance; for (int i = 0; i < _pcs.Length; i++) { if (instance != null) -- cgit v1.1