mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-23 12:51:06 +00:00
Bug 1822393 - enable Werror compiler args for geckoview dependencies. r=gl,geckoview-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D201496
This commit is contained in:
parent
d28cff8009
commit
d3ac4afbe4
19
build.gradle
19
build.gradle
@ -368,10 +368,23 @@ afterEvaluate {
|
||||
// Classfile, because javac has a bug with MethodParameters attributes
|
||||
// with Java 7. https://bugs.openjdk.java.net/browse/JDK-8190452
|
||||
"-Xlint:-classfile"]
|
||||
// Turn all remaining warnings into errors,
|
||||
// unless marked by @SuppressWarnings.
|
||||
//"-Werror"]
|
||||
|
||||
// In GeckoView java projects only, turn all remaining warnings
|
||||
// into errors unless marked by @SuppressWarnings.
|
||||
def projectName = project.getName()
|
||||
if (projectName.startsWith('geckoview')
|
||||
|| projectName == 'annotations'
|
||||
|| projectName == 'exoplayer2'
|
||||
|| projectName == 'messaging_example'
|
||||
|| projectName == 'port_messaging_example'
|
||||
|| projectName == 'test_runner'
|
||||
) {
|
||||
options.compilerArgs += [
|
||||
"-Werror"
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user