diff options
author | Colin Cross <ccross@android.com> | 2019-11-08 12:07:55 -0800 |
---|---|---|
committer | android-build-merger <android-build-merger@google.com> | 2019-11-08 12:07:55 -0800 |
commit | cc888a22b93dedd8a185eab6c54b5ff8d08625cc (patch) | |
tree | 09fa18931855ebcc814676baf898b865ac4fd195 | |
parent | b72546c296035ed1277e4bc623e0736cfdf49dec (diff) | |
parent | 39a5c06ec8b332df2e2ddc53906591697ae7bf28 (diff) | |
download | native-cc888a22b93dedd8a185eab6c54b5ff8d08625cc.tar.gz |
Merge "Replace -Weverything with -Wextra"
am: 39a5c06ec8
Change-Id: I62204af80b72abccbb3fa6c3012c2a600ad12889
-rw-r--r-- | libs/binder/tests/Android.bp | 7 | ||||
-rw-r--r-- | libs/sensor/Android.bp | 17 | ||||
-rw-r--r-- | libs/ui/Android.bp | 23 | ||||
-rw-r--r-- | vulkan/libvulkan/Android.bp | 7 |
4 files changed, 7 insertions, 47 deletions
diff --git a/libs/binder/tests/Android.bp b/libs/binder/tests/Android.bp index 635ea69fb4..5a7f9a97fa 100644 --- a/libs/binder/tests/Android.bp +++ b/libs/binder/tests/Android.bp @@ -119,12 +119,7 @@ cc_test { srcs: ["binderSafeInterfaceTest.cpp"], cppflags: [ - "-Weverything", - "-Wno-c++98-compat", - "-Wno-c++98-compat-pedantic", - "-Wno-global-constructors", - "-Wno-padded", - "-Wno-weak-vtables", + "-Wextra", ], cpp_std: "experimental", diff --git a/libs/sensor/Android.bp b/libs/sensor/Android.bp index 940ff5afbc..e8154a6931 100644 --- a/libs/sensor/Android.bp +++ b/libs/sensor/Android.bp @@ -21,22 +21,7 @@ cc_library_shared { "-Werror", ], cppflags: [ - "-Weverything", - - // The static constructors and destructors in this library have not been noted to - // introduce significant overheads - "-Wno-exit-time-destructors", - "-Wno-global-constructors", - - // We only care about compiling as C++14 - "-Wno-c++98-compat-pedantic", - - // android/sensors.h uses nested anonymous unions and anonymous structs - "-Wno-nested-anon-types", - "-Wno-gnu-anonymous-struct", - - // Don't warn about struct padding - "-Wno-padded", + "-Wextra", ], srcs: [ diff --git a/libs/ui/Android.bp b/libs/ui/Android.bp index 2518e9374d..db15e17524 100644 --- a/libs/ui/Android.bp +++ b/libs/ui/Android.bp @@ -26,28 +26,7 @@ cc_library_shared { "-Werror", ], cppflags: [ - "-Weverything", - - // The static constructors and destructors in this library have not been noted to - // introduce significant overheads - "-Wno-exit-time-destructors", - "-Wno-global-constructors", - - // We only care about compiling as C++14 - "-Wno-c++98-compat-pedantic", - - // We are aware of the risks inherent in comparing floats for equality - "-Wno-float-equal", - - // We use four-character constants for the GraphicBuffer header, and don't care - // that they're non-portable as long as they're consistent within one execution - "-Wno-four-char-constants", - - // Don't warn about struct padding - "-Wno-padded", - - "-Wno-switch-enum", - "-Wno-format-pedantic", + "-Wextra", ], sanitize: { diff --git a/vulkan/libvulkan/Android.bp b/vulkan/libvulkan/Android.bp index b0c4f3f95a..4d6b2be301 100644 --- a/vulkan/libvulkan/Android.bp +++ b/vulkan/libvulkan/Android.bp @@ -41,12 +41,13 @@ cc_library_shared { "-DVK_NO_PROTOTYPES", "-fvisibility=hidden", "-fstrict-aliasing", - "-Weverything", + "-Wextra", "-Werror", "-Wno-padded", + "-Wno-sign-compare", "-Wno-switch-enum", - "-Wno-undef", - "-Wno-format-pedantic", + "-Wno-unused-variable", + "-Wno-unused-function", // Have clang emit complete debug_info. "-fstandalone-debug", |