Skip to content

Commit

Permalink
Fix some analyzer violations.
Browse files Browse the repository at this point in the history
  • Loading branch information
alexrp committed Nov 15, 2023
1 parent 7dc9d17 commit d8db949
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/sdk/ZigCompile.cs
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,7 @@ protected override string GenerateCommandLineCommands()

var disabledWarnings = new HashSet<string>(
(DisableWarnings ?? string.Empty)
.Split(new[] { ';' }, SplitOptions)
.Split([';'], SplitOptions)
.Select(w => w.Trim())
.Where(w =>
{
Expand Down Expand Up @@ -527,7 +527,7 @@ void TryAppendWarningSwitch(string name)
if (!LinkTimeOptimization)
builder.AppendSwitch("-fno-lto");

foreach (var define in (DefineConstants ?? string.Empty).Split(new[] { ';' }, SplitOptions))
foreach (var define in (DefineConstants ?? string.Empty).Split([';'], SplitOptions))
{
var trimmed = define.Trim();

Expand Down

0 comments on commit d8db949

Please sign in to comment.