Skip to content

Commit 4b11a8f

Browse files
committed
Fix warnings in 2 test cases
1 parent 4653da0 commit 4b11a8f

3 files changed

Lines changed: 3 additions & 1 deletion

File tree

src/main/scala/viper/silver/parser/MacroExpander.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ object MacroExpander {
7272

7373
if (nonUsedParameter.nonEmpty) {
7474
Some(ParseWarning(s"in macro `${define.idndef.name}`, the following parameters were defined but not used: " +
75-
s"${nonUsedParameter.mkString(", ")} ", define.errorPosition))
75+
s"${nonUsedParameter.mkString(", ")}", define.errorPosition))
7676
}
7777
else
7878
None

src/test/resources/all/issues/silver/0114-1.vpr

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
// http://creativecommons.org/publicdomain/zero/1.0/
33

44
define foo(x) true
5+
define foo(x) x
56

67
method bar()
78
{

src/test/resources/all/issues/silver/0114.vpr

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
// Any copyright is dedicated to the Public Domain.
22
// http://creativecommons.org/publicdomain/zero/1.0/
33

4+
//:: ExpectedOutput(parser.warning)
45
define B(x, res) true
56

67
method test1(x: Ref)

0 commit comments

Comments
 (0)