diff options
author | Andreas Gampe <agampe@google.com> | 2015-04-03 21:28:42 -0700 |
---|---|---|
committer | Andreas Gampe <agampe@google.com> | 2015-04-06 14:03:17 -0700 |
commit | 758a801b66c134361a7b43f7e83f85d1fb800c4c (patch) | |
tree | 35b060c780fcf6e7c268fec47df40c74b5ab8b05 /build | |
parent | e8aae00fa400efbb8f998a5dbf68eb42810889c1 (diff) | |
download | art-758a801b66c134361a7b43f7e83f85d1fb800c4c.zip art-758a801b66c134361a7b43f7e83f85d1fb800c4c.tar.gz art-758a801b66c134361a7b43f7e83f85d1fb800c4c.tar.bz2 |
ART: Enable Clang's -Wdeprecated
Replace throw() with noexcept.
Add default copy constructors and copy assignment constructors for
cases with destructors, as the implicit definition is deprecated.
Change-Id: Ice306a3f510b072b00bec4d4360f7c8055135c9d
Diffstat (limited to 'build')
-rw-r--r-- | build/Android.common_build.mk | 3 | ||||
-rw-r--r-- | build/Android.gtest.mk | 8 |
2 files changed, 7 insertions, 4 deletions
diff --git a/build/Android.common_build.mk b/build/Android.common_build.mk index 91b6620..8b4be82 100644 --- a/build/Android.common_build.mk +++ b/build/Android.common_build.mk @@ -138,6 +138,9 @@ art_clang_cflags += -Wint-to-void-pointer-cast # Enable warning of wrong unused annotations. art_clang_cflags += -Wused-but-marked-unused +# Enable warning for deprecated language features. +art_clang_cflags += -Wdeprecated + # GCC-only warnings. art_gcc_cflags := -Wunused-but-set-parameter diff --git a/build/Android.gtest.mk b/build/Android.gtest.mk index 86cc5ad..6714480 100644 --- a/build/Android.gtest.mk +++ b/build/Android.gtest.mk @@ -257,7 +257,7 @@ LOCAL_ADDITIONAL_DEPENDENCIES := art/build/Android.common_build.mk LOCAL_ADDITIONAL_DEPENDENCIES += art/build/Android.gtest.mk $(eval $(call set-target-local-clang-vars)) $(eval $(call set-target-local-cflags-vars,debug)) -LOCAL_CLANG_CFLAGS += -Wno-used-but-marked-unused # gtest issue +LOCAL_CLANG_CFLAGS += -Wno-used-but-marked-unused -Wno-deprecated # gtest issue include $(BUILD_SHARED_LIBRARY) include $(CLEAR_VARS) @@ -272,7 +272,7 @@ LOCAL_STATIC_LIBRARIES := libgtest_host LOCAL_LDLIBS += -ldl -lpthread LOCAL_MULTILIB := both LOCAL_CLANG := $(ART_HOST_CLANG) -LOCAL_CLANG_CFLAGS += -Wno-used-but-marked-unused # gtest issue +LOCAL_CLANG_CFLAGS += -Wno-used-but-marked-unused -Wno-deprecated # gtest issue LOCAL_ADDITIONAL_DEPENDENCIES := art/build/Android.common_build.mk LOCAL_ADDITIONAL_DEPENDENCIES += art/build/Android.gtest.mk include $(BUILD_HOST_SHARED_LIBRARY) @@ -425,7 +425,7 @@ define define-art-gtest LOCAL_MODULE_PATH_32 := $$(ART_TARGET_NATIVETEST_OUT)/$$(ART_TARGET_ARCH_32) LOCAL_MODULE_PATH_64 := $$(ART_TARGET_NATIVETEST_OUT)/$$(ART_TARGET_ARCH_64) LOCAL_MULTILIB := both - LOCAL_CLANG_CFLAGS += -Wno-used-but-marked-unused # gtest issue + LOCAL_CLANG_CFLAGS += -Wno-used-but-marked-unused -Wno-deprecated # gtest issue include $$(BUILD_EXECUTABLE) library_path := 2nd_library_path := @@ -464,7 +464,7 @@ test-art-target-gtest-$$(art_gtest_name): $$(ART_TEST_TARGET_GTEST_$$(art_gtest_ LOCAL_MULTILIB := both LOCAL_MODULE_STEM_32 := $$(art_gtest_name)32 LOCAL_MODULE_STEM_64 := $$(art_gtest_name)64 - LOCAL_CLANG_CFLAGS += -Wno-used-but-marked-unused # gtest issue + LOCAL_CLANG_CFLAGS += -Wno-used-but-marked-unused -Wno-deprecated # gtest issue include $$(BUILD_HOST_EXECUTABLE) ART_TEST_HOST_GTEST_$$(art_gtest_name)_RULES := |