Skip to content

Commit

Permalink
additional nowarn directives (part 2)
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin521 committed Sep 16, 2024
1 parent 175a57f commit eea0f53
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
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

0 comments on commit eea0f53

Please sign in to comment.