summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>2018-06-09 12:47:43 +0300
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>2018-06-09 19:40:09 +0300
commitde8d802f21e002270b0b758835fa25232a31208e (patch)
tree5d6f78f7f199ac5e019b294c53a4f167b75bb964
parent24800b4ee0496189ab11b544c468f4999f94a55b (diff)
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 <laurent.pinchart@ideasonboard.com>
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
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 := \