Skip to content

Commit

Permalink
Tweak message for unused local variable to make it more consistent/re…
Browse files Browse the repository at this point in the history
…adable
  • Loading branch information
hsutter committed Jan 18, 2024
1 parent 96a4abc commit 9ce1677
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/sema.h
Original file line number Diff line number Diff line change
Expand Up @@ -677,7 +677,7 @@ class sema
{
errors.emplace_back(
id->position(),
"local variable " + id->to_string() + " is not used; consider changing its name to '_' to make it explicitly anonymous, or removing it entirely if its side effects are not needed"
"local variable '" + id->to_string() + "' is not used; consider changing its name to '_' to make it explicitly anonymous, or removing it entirely if its side effects are not needed"
);
}
}
Expand Down

0 comments on commit 9ce1677

Please sign in to comment.