OSDN Git Service

Added extra Werror compiler flags
authorPavlin Radoslavov <pavlin@google.com>
Fri, 29 Jan 2016 21:37:44 +0000 (13:37 -0800)
committerPavlin Radoslavov <pavlin@google.com>
Sat, 30 Jan 2016 22:27:21 +0000 (22:27 +0000)
Added extra Werror compiler flags that are globally enabled
by default only on certain targets (e.g., arm64).
Thus, we can catch build errors before submitting the code.

Bug: 26879229
Change-Id: I8b1dae6f61219d2274cd2df019464315d4172da2

Android.mk

index 36b5807..eca25a0 100644 (file)
@@ -23,6 +23,10 @@ bdroid_CFLAGS += \
   -fvisibility=hidden \
   -Wall \
   -Wunused-but-set-variable \
+  -Werror=format-security \
+  -Werror=pointer-to-int-cast \
+  -Werror=int-to-pointer-cast \
+  -Werror=implicit-function-declaration \
   -UNDEBUG \
   -DLOG_NDEBUG=1