Skip to content

Commit

Permalink
Fix bad formatted keys in SuppressWarnings set
Browse files Browse the repository at this point in the history
  • Loading branch information
AliveDevil committed Nov 27, 2024
1 parent c871fe4 commit 9179ddb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/IKVM.Tools.Importer/ImportContext.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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)
Expand Down

0 comments on commit 9179ddb

Please sign in to comment.