summaryrefslogtreecommitdiff
path: root/Android.mk
diff options
context:
space:
mode:
authorSharvil Nanavati <sharvil@google.com>2014-04-17 22:32:05 -0700
committerMatthew Xie <mattx@google.com>2014-05-06 01:14:23 -0700
commit31fafe5d31a6dc88013fb7f02f6ef203426ce6c3 (patch)
treeb5f2c6342a13d378153e8273277a9f673988bbc9 /Android.mk
parente5f886f7ef5ca055306d0883ec46fdb857a91059 (diff)
downloadbluedroid-31fafe5d31a6dc88013fb7f02f6ef203426ce6c3.tar.gz
Eliminate warnings, add -Wall and -Werror to all projects.
This change enables all warnings and treats warnings as errors. As a result, nobody should be able to submit new code to bluedroid that contains compiler warnings. Instead, they should fix the warnings before submitting. This change has already caught a type mismatch bug in stack/avrc/avrc_api.c where an integer was being stored in a boolean. Change-Id: Ic41960754b39a1a6aa37f1c1095003195f466183
Diffstat (limited to 'Android.mk')
-rw-r--r--Android.mk2
1 files changed, 2 insertions, 0 deletions
diff --git a/Android.mk b/Android.mk
index 9e197f0..83e6bbf 100644
--- a/Android.mk
+++ b/Android.mk
@@ -11,6 +11,8 @@ else
bdroid_CFLAGS += -DHAS_NO_BDROID_BUILDCFG
endif
+bdroid_CFLAGS += -Wall -Werror
+
include $(call all-subdir-makefiles)
# Cleanup our locals