From eea0f53b3f55aae2ceb431e0d1154269a7b71ee1 Mon Sep 17 00:00:00 2001 From: Martin521 <29605222+Martin521@users.noreply.github.com> Date: Mon, 16 Sep 2024 10:53:47 +0200 Subject: [PATCH] additional nowarn directives (part 2) --- src/FsYacc.Core/fsyaccdriver.fs | 2 +- src/FsYacc.Core/fsyaccpars.fsy | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/FsYacc.Core/fsyaccdriver.fs b/src/FsYacc.Core/fsyaccdriver.fs index 0afb1312..2ff89bab 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 4dd623c3..ee76c013 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" %}