Android: disable unused-parameter warning
authorRob Herring <robh@kernel.org>
Fri, 29 Jan 2016 18:52:27 +0000 (12:52 -0600)
committerEmil Velikov <emil.l.velikov@gmail.com>
Thu, 18 Feb 2016 17:47:33 +0000 (17:47 +0000)
Android builds with -Wunused-parameter enabled which results in spewing
lots of warnings. Disable it so more meaningful warnings are more visible.

Signed-off-by: Rob Herring <robh@kernel.org>
Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
Android.common.mk

index 72fa5d992d88ae8c6898be6b5f145353a227c20f..c4823f7dbf12c600cd0cbdba03fea4817f0c8a0b 100644 (file)
@@ -32,6 +32,7 @@ LOCAL_C_INCLUDES += \
 MESA_VERSION := $(shell cat $(MESA_TOP)/VERSION)
 # define ANDROID_VERSION (e.g., 4.0.x => 0x0400)
 LOCAL_CFLAGS += \
+       -Wno-unused-parameter \
        -DPACKAGE_VERSION=\"$(MESA_VERSION)\" \
        -DPACKAGE_BUGREPORT=\"https://bugs.freedesktop.org/enter_bug.cgi?product=Mesa\" \
        -DANDROID_VERSION=0x0$(MESA_ANDROID_MAJOR_VERSION)0$(MESA_ANDROID_MINOR_VERSION)