Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Additional nowarn directives in the generated code (part 2) #221

Merged
merged 1 commit into from
Sep 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/FsYacc.Core/fsyaccdriver.fs
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ let writeSpecToFile (generatorState: GeneratorState) (spec: ParserSpec) (compile
writer.WriteLineInterface "module %s" s

writer.WriteLine
"#nowarn \"64\";; // turn off warnings that type variables used in production annotations are instantiated to concrete type"
"#nowarn \"64\" // turn off warnings that type variables used in production annotations are instantiated to concrete type"

writer.WriteLine "#nowarn \"1182\" // the generated code often has unused variable 'parseState'"

Expand Down
1 change: 1 addition & 0 deletions src/FsYacc.Core/fsyaccpars.fsy
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ open FsLexYacc.FsYacc
open FsLexYacc.FsYacc.AST

#nowarn "62" // This construct is for ML compatibility
#nowarn "64" // Turn off warnings that type variables used in production annotations are instantiated to concrete type"

%}

Expand Down
Loading