[antlr-interest] C# target build warnings in generated files: solution
Sam Harwell
sharwell at pixelminegames.com
Mon Jun 23 05:54:41 PDT 2008
I know I saw a message regarding this in the past. Here's a solution.
Add the following to your grammar file.
@lexer::header {
// The variable 'variable' is assigned but its value is never used.
#pragma warning disable 168, 219
// Unreachable code detected.
#pragma warning disable 162
}
@parser::header {
// The variable 'variable' is assigned but its value is never used
#pragma warning disable 168, 219
// Unreachable code detected
#pragma warning disable 162
}
Sam
More information about the antlr-interest
mailing list