Skip to content

Commit

Permalink
Fix warnings in 2 test cases
Browse files Browse the repository at this point in the history
  • Loading branch information
JonasAlaif committed Feb 9, 2024
1 parent 4653da0 commit b8dfd93
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/main/scala/viper/silver/parser/MacroExpander.scala
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ object MacroExpander {

if (nonUsedParameter.nonEmpty) {
Some(ParseWarning(s"in macro `${define.idndef.name}`, the following parameters were defined but not used: " +
s"${nonUsedParameter.mkString(", ")} ", define.errorPosition))
s"${nonUsedParameter.mkString(", ")}", define.errorPosition))
}
else
None
Expand Down
2 changes: 1 addition & 1 deletion src/test/resources/all/issues/silver/0114-1.vpr
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Any copyright is dedicated to the Public Domain.
// http://creativecommons.org/publicdomain/zero/1.0/

define foo(x) true
define foo(x) x

method bar()
{
Expand Down
1 change: 1 addition & 0 deletions src/test/resources/all/issues/silver/0114.vpr
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
// Any copyright is dedicated to the Public Domain.
// http://creativecommons.org/publicdomain/zero/1.0/

//:: ExpectedOutput(parser.warning)
define B(x, res) true

method test1(x: Ref)
Expand Down

0 comments on commit b8dfd93

Please sign in to comment.