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
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 @@
# 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