From 0efa898fbeea7804c51acf6fcde5a370025cefa5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Doeraene?= Date: Sun, 27 Sep 2015 10:40:42 +0200 Subject: [PATCH 1/2] Move the deprecation of OfflineAudioCompletionEvent to oncomplete. So that our build doesn't have a deprecation warning. --- src/main/scala/org/scalajs/dom/raw/Audio.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/scala/org/scalajs/dom/raw/Audio.scala b/src/main/scala/org/scalajs/dom/raw/Audio.scala index 23ce18adc..c94cb9a81 100644 --- a/src/main/scala/org/scalajs/dom/raw/Audio.scala +++ b/src/main/scala/org/scalajs/dom/raw/Audio.scala @@ -230,6 +230,7 @@ class OfflineAudioContext(numOfChannels: Int, length: Int, sampleRate: Int) exte /** Is an EventHandler called when the processing is terminated, that is * when the complete event (of type OfflineAudioCompletionEvent) is raised. */ + @deprecated("Use the promise version of OfflineAudioContext.startRendering instead.", "forever") var oncomplete: js.Function1[OfflineAudioCompletionEvent, _] = js.native } @@ -1250,7 +1251,6 @@ trait AudioBuffer extends js.Object { * that occur when the processing of an OfflineAudioContext is terminated. * The complete event implements this interface. */ -@deprecated("Use the promise version of OfflineAudioContext.startRendering instead.", "forever") trait OfflineAudioCompletionEvent extends Event { /** The buffer containing the result of the processing of an * OfflineAudioContext. From 169d09509bc2eaf2e1c2b87ef0f1607dc285a953 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Doeraene?= Date: Sun, 27 Sep 2015 10:43:15 +0200 Subject: [PATCH 2/2] Enable fatal warnings. --- build.sbt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build.sbt b/build.sbt index 1f11a83b3..12fa211ec 100644 --- a/build.sbt +++ b/build.sbt @@ -15,7 +15,7 @@ scalaVersion := "2.11.6" crossScalaVersions := Seq("2.10.5", "2.11.6") -scalacOptions ++= Seq("-deprecation", "-feature") +scalacOptions ++= Seq("-deprecation", "-feature", "-Xfatal-warnings") homepage := Some(url("http://scala-js.org/"))