missing-field-initializers warning is not enabled on autotools build. Current code rely on implicit fields intializations resulting in flood of bogus compiler warnings while building for Android. monitor/packet.c:348:2: warning: missing initializer [-Wmissing-field-initializers] monitor/packet.c:348:2: warning: (near initialization for 'error2str_table[64].error') [-Wmissing-field-initializers] monitor/packet.c:542:2: warning: missing initializer [-Wmissing-field-initializers] monitor/packet.c:542:2: warning: (near initialization for 'svc_class_table[8].bit') [-Wmissing-field-initializers] monitor/packet.c:557:2: warning: missing initializer [-Wmissing-field-initializers] monitor/packet.c:557:2: warning: (near initialization for 'major_class_computer_table[8].val') [-Wmissing-field-initializers] --- android/Android.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/android/Android.mk b/android/Android.mk index 86af7b6..d76dfaf 100644 --- a/android/Android.mk +++ b/android/Android.mk @@ -11,7 +11,7 @@ BLUEZ_COMMON_CFLAGS := -DVERSION=\"$(BLUEZ_VERSION)\" \ -DPLATFORM_SDK_VERSION=$(PLATFORM_SDK_VERSION) # Disable warnings enabled by Android but not enabled in autotools build -BLUEZ_COMMON_CFLAGS += -Wno-pointer-arith +BLUEZ_COMMON_CFLAGS += -Wno-pointer-arith -Wno-missing-field-initializers # # Android BlueZ daemon (bluetoothd) -- 1.8.4.1 -- To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html