From 9179ddb90e1473ef35ca6d69362198937ff3d3db Mon Sep 17 00:00:00 2001 From: AliveDevil Date: Wed, 27 Nov 2024 10:59:29 +0100 Subject: [PATCH] Fix bad formatted keys in SuppressWarnings set --- src/IKVM.Tools.Importer/ImportContext.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/IKVM.Tools.Importer/ImportContext.cs b/src/IKVM.Tools.Importer/ImportContext.cs index d0a2a78d5..7341ba770 100644 --- a/src/IKVM.Tools.Importer/ImportContext.cs +++ b/src/IKVM.Tools.Importer/ImportContext.cs @@ -569,7 +569,7 @@ void ContinueParseCommandLine(RuntimeContext context, StaticCompiler compiler, I if (options.NoWarn != null) foreach (var diagnostic in options.NoWarn) - compilerOptions.suppressWarnings.Add($"IKVM{diagnostic.Id:D4}"); + compilerOptions.suppressWarnings.Add(diagnostic.Id.ToString()); // TODO handle specific diagnostic IDs if (options.WarnAsError != null) @@ -578,7 +578,7 @@ void ContinueParseCommandLine(RuntimeContext context, StaticCompiler compiler, I compilerOptions.warnaserror = true; else foreach (var i in options.WarnAsError) - compilerOptions.errorWarnings.Add($"IKVM{i.Id:D4}"); + compilerOptions.errorWarnings.Add(i.Id.ToString()); } if (options.Runtime != null)