-
Notifications
You must be signed in to change notification settings - Fork 111
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adding -Xfatal-warnings #39
Comments
Let's hope we don't have any warnings. |
|
There are some warnings when compiling with Scala 2.11.
|
I tried to fix those in a CompletenessTest cleanup PR that I made, but the suggested method/property changes for the remaining deprecation warnings don't exist in 2.10. |
So this means that there is no solution which emits no warnings and no errors both in 2.10 and 2.11. Which probably means that we better give up the idea of adding the |
Warnings by the Scala compiler often reveal problems with the code, and there's the
-Xfatal-warnings
option which makes the build fail if there are warnings. Currently, there are no warnings in this project, so we could add the-Xfatal-warnings
option without problems, and be sure that further PRs don't introduce any warnings.I tried to add the option to
build.sbt
, but it only applies to the root project but not to the examples project. ApparentlyscalacOptions in ThisBuild
means "really only this project without sub-projects". But that would mean that the other options also don't apply to the examples project, which would be bad... /cc @jmhofer @zsxwingThe text was updated successfully, but these errors were encountered: