From de8d802f21e002270b0b758835fa25232a31208e Mon Sep 17 00:00:00 2001 From: Laurent Pinchart Date: Sat, 9 Jun 2018 12:47:43 +0300 Subject: Makefile: Suppress unused parameter warnings When implementing callback APIs, it is common to not use some of the parameters to the callback functions. Instead of requiring the user of the callback to annotate unused parameters manually, suppress the warning. Signed-off-by: Laurent Pinchart --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index f3d7208..c3db9d3 100644 --- a/Makefile +++ b/Makefile @@ -4,7 +4,7 @@ KERNEL_DIR ?= /usr/src/linux CC := $(CROSS_COMPILE)gcc KERNEL_INCLUDE := -I$(KERNEL_DIR)/include -I$(KERNEL_DIR)/arch/$(ARCH)/include -CFLAGS := -W -Wall -g $(KERNEL_INCLUDE) +CFLAGS := -W -Wall -Wno-unused-parameter -g $(KERNEL_INCLUDE) LDFLAGS := -g OBJS := \ -- cgit v1.2.3