1
Vote

Compiler warnings when building TraceEvent

description

When building TraceEvent from source using VS 2013, I get the following compiler warnings:

TraceEvent\Microsoft-Scripting-JScript9.cs(1985,23,1985,32): warning CS0108: 'Diagnostics.Tracing.Parsers.ProjectionTypeNameAndEventNameTraceData.EventName' hides inherited member 'Diagnostics.Tracing.TraceEvent.EventName'. Use the new keyword if hiding was intended.
TraceEvent\Microsoft-Scripting-JScript9.cs(3311,23,3311,32): warning CS0108: 'Diagnostics.Tracing.Parsers.JscriptWinRTEventHandlerAllocationTraceData.EventName' hides inherited member 'Diagnostics.Tracing.TraceEvent.EventName'. Use the new keyword if hiding was intended.
TraceEvent\Microsoft-Windows-IE-HTMLRendering.cs(133,20,133,27): warning CS0108: 'Diagnostics.Tracing.Parsers.SettingsTraceData.Version' hides inherited member 'Diagnostics.Tracing.TraceEvent.Version'. Use the new keyword if hiding was intended.
TraceEvent\Stacks\Stacks.cs(929,127,929,136): warning CS1573: Parameter 'histogram' has no matching param tag in the XML comment for 'Diagnostics.Tracing.StackSources.HistogramController.GetInfoForCharacterRange(Diagnostics.Tracing.StackSources.HistogramCharacterIndex, Diagnostics.Tracing.StackSources.HistogramCharacterIndex, Diagnostics.Tracing.StackSources.Histogram)' (but other parameters do)
TraceEvent\Stacks\Stacks.cs(1138,127,1138,136): warning CS1573: Parameter 'histogram' has no matching param tag in the XML comment for 'Diagnostics.Tracing.StackSources.ScenarioHistogramController.GetInfoForCharacterRange(Diagnostics.Tracing.StackSources.HistogramCharacterIndex, Diagnostics.Tracing.StackSources.HistogramCharacterIndex, Diagnostics.Tracing.StackSources.Histogram)' (but other parameters do)
TraceEvent\TraceEventSession.cs(245,9,245,40): warning CS1570: XML comment on 'Diagnostics.Tracing.TraceEventSession.GetEventSourceGuidFromName(string)' has badly formed XML -- 'End tag 'member' does not match the start tag 'summary'.'
TraceEvent\TraceEventSession.cs(941,18,941,32): warning CS0219: The variable 'needExtensions' is assigned but its value is never used

The warnings are mostly harmless, but should be addressed -- the fixes are fairly simple.

comments