Skip to content

Commit

Permalink
Merge pull request bumptech#4914 from sjudd:cleanup_compile_flags
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 478121250
  • Loading branch information
glide-copybara-robot committed Oct 1, 2022
2 parents 9488787 + b420e88 commit f9b508b
Showing 1 changed file with 14 additions and 23 deletions.
37 changes: 14 additions & 23 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -124,29 +124,20 @@ subprojects { project ->
// modified, so we're not going to worry about cleaning it up.
// Imgur uses generated code from dagger that has warnings.
if ("gifencoder" != project.getName() && "imgur" != project.getName()) {
options.compilerArgs \
/*
* Treat all warnings as errors.
*/ \
<< "-Werror" \
/*
* Enable all warnings.
*/ \
<< "-Xlint:all" \
/*
* Java expects every annotation to have a processor, but we use
* javax.annotation.Nullable, which doesn't have one.
*/ \
<< "-Xlint:-processing" \
/*
* See https://github.com/google/dagger/issues/945
* and https://bugs.openjdk.java.net/browse/JDK-8190452
*/ \
<< "-Xlint:-classfile" \
/*
* Disable deprecation warnings for ViewTarget/BaseTarget for now.
*/ \
<< "-Xlint:-deprecation"
options.compilerArgs.addAll([
//Treat all warnings as errors.
"-Werror",
//Enable all warnings.
"-Xlint:all",
// Java expects every annotation to have a processor, but we use
// javax.annotation.Nullable, which doesn't have one.
"-Xlint:-processing",
// See https://github.com/google/dagger/issues/945
// and https://bugs.openjdk.java.net/browse/JDK-8190452
"-Xlint:-classfile",
// Disable deprecation warnings for ViewTarget/BaseTarget for now.
"-Xlint:-deprecation",
])
}
}

Expand Down

0 comments on commit f9b508b

Please sign in to comment.