Skip to content

Commit

Permalink
Merge pull request #221 from Martin521/additional-warn-directives-(2)
Browse files Browse the repository at this point in the history
Additional nowarn directives in the generated code (part 2)
  • Loading branch information
nojaf committed Sep 16, 2024
2 parents 175a57f + eea0f53 commit ee9ff63
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 ee9ff63

Please sign in to comment.