From 6a43401fb7e05f3167d761acdaa93938424124fd Mon Sep 17 00:00:00 2001 From: Szymon Janc Date: Mon, 10 Feb 2014 10:08:34 +0100 Subject: [PATCH] android/build: Match compiler options used in autotools and Android.mk --- android/Android.mk | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/android/Android.mk b/android/Android.mk index 20105e68c..0cd637457 100644 --- a/android/Android.mk +++ b/android/Android.mk @@ -11,8 +11,17 @@ pathmap_INCL += glib:external/bluetooth/glib \ BLUEZ_COMMON_CFLAGS := -DVERSION=\"$(BLUEZ_VERSION)\" \ -DANDROID_STORAGEDIR=\"/data/misc/bluetooth\" \ +# Enable warnings enabled in autotools build +BLUEZ_COMMON_CFLAGS += -Wall -Wextra \ + -Wdeclaration-after-statement \ + -Wmissing-declarations \ + -Wredundant-decls \ + -Wcast-align \ + # Disable warnings enabled by Android but not enabled in autotools build -BLUEZ_COMMON_CFLAGS += -Wno-pointer-arith -Wno-missing-field-initializers +BLUEZ_COMMON_CFLAGS += -Wno-pointer-arith \ + -Wno-missing-field-initializers \ + -Wno-unused-parameter \ # # Android BlueZ daemon (bluetoothd) -- 2.47.3