diff --git a/src/FsYacc.Core/fsyaccdriver.fs b/src/FsYacc.Core/fsyaccdriver.fs index 0afb131..2ff89ba 100644 --- a/src/FsYacc.Core/fsyaccdriver.fs +++ b/src/FsYacc.Core/fsyaccdriver.fs @@ -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'" diff --git a/src/FsYacc.Core/fsyaccpars.fsy b/src/FsYacc.Core/fsyaccpars.fsy index 4dd623c..ee76c01 100644 --- a/src/FsYacc.Core/fsyaccpars.fsy +++ b/src/FsYacc.Core/fsyaccpars.fsy @@ -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" %}