Disable compiler warnings that are irrelevant for generated code.

These warnings are turned off:
CS0162:  Unreachable code detected
CS0219:  The variable '...' is assigned but its value is never used
CS1591:  Missing XML comment for publicly visible type or member '...'
This commit is contained in:
Ryan Harris 2013-08-26 16:53:12 -04:00
parent 8897097b95
commit d1b1bb0c02
1 changed files with 8 additions and 0 deletions

View File

@ -216,6 +216,14 @@ fileHeader(grammarFileName, ANTLRVersion) ::= <<
//------------------------------------------------------------------------------
// Generated from <grammarFileName> by ANTLR <ANTLRVersion>
// Unreachable code detected
#pragma warning disable 0162
// The variable '...' is assigned but its value is never used
#pragma warning disable 0219
// Missing XML comment for publicly visible type or member '...'
#pragma warning disable 1591
>>
Parser(parser, funcs, atn, sempredFuncs, superClass) ::= <<