From 9b2ce26887d5322131f10d85530c733b76f3de33 Mon Sep 17 00:00:00 2001 From: Som Snytt Date: Sun, 15 Dec 2013 20:10:25 -0800 Subject: SI-6120 Suppress extra warnings This is a mere polish for the fix to allow multiple warnings. Sensibility checks in refchecks were shown to be redundant. This commit includes a mild refactor to reduce tabbage, and uses a local var to flag that a warning has already been emitted. It would be better to have the checks return true if warned, to facilitate `nonSensically || unrelatedly`, etc., but that's a lot of `else false`. The check files that were updated with the redundant warnings are reverted. --- test/files/neg/t7756b.check | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'test/files/neg/t7756b.check') diff --git a/test/files/neg/t7756b.check b/test/files/neg/t7756b.check index e764783241..2817a7e230 100644 --- a/test/files/neg/t7756b.check +++ b/test/files/neg/t7756b.check @@ -1,9 +1,6 @@ t7756b.scala:3: warning: comparing values of types Int and String using `==' will always yield false case _ => 0 == "" ^ -t7756b.scala:3: warning: Int and String are unrelated: they will most likely never compare equal - case _ => 0 == "" - ^ error: No warnings can be incurred under -Xfatal-warnings. -two warnings found +one warning found one error found -- cgit v1.2.3