From ca6ee8331f8bbfa1a8999427cd79c7aaaa860c01 Mon Sep 17 00:00:00 2001 From: Pirama Arumuga Nainar Date: Wed, 26 Sep 2018 23:31:00 -0700 Subject: [PATCH] Enable -Wexit-time-destructor for all targets This warning should be available for Windows as well. Test: mmma system/core/base Change-Id: Id2e7e4da2e5105870a8d1e10c793e4a54c5b3d04 --- base/Android.bp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/base/Android.bp b/base/Android.bp index 3d80d9719..daa820ab4 100644 --- a/base/Android.bp +++ b/base/Android.bp @@ -56,6 +56,7 @@ cc_defaults { "test_utils.cpp", ], + cppflags: ["-Wexit-time-destructors"], shared_libs: ["liblog"], target: { android: { @@ -68,13 +69,11 @@ cc_defaults { srcs: [ "errors_unix.cpp", ], - cppflags: ["-Wexit-time-destructors"], }, darwin: { srcs: [ "errors_unix.cpp", ], - cppflags: ["-Wexit-time-destructors"], }, linux_bionic: { enabled: true,