Merge "Add -Werror=date-time to target builds"
am: 5c3f812507
* commit '5c3f812507bd025da2fc3d5fa40e8a278535dff2':
Add -Werror=date-time to target builds
diff --git a/core/config.mk b/core/config.mk
index c8d2dd3..1af1995 100644
--- a/core/config.mk
+++ b/core/config.mk
@@ -602,7 +602,7 @@
GLOBAL_CPPFLAGS_NO_OVERRIDE :=
# list of flags to turn specific warnings in to errors
-TARGET_ERROR_FLAGS := -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point
+TARGET_ERROR_FLAGS := -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Werror=date-time
# We run gcc/clang with PWD=/proc/self/cwd to remove the $TOP
# from the debug output. That way two builds in two different