From d3de93a15f3cc451f50e46fe056876decf05ee94 Mon Sep 17 00:00:00 2001 From: Shanpei Chen Date: Mon, 18 Apr 2022 15:45:43 +0800 Subject: [PATCH] src: don't print "defined but not used function" warning message For normal program, it's good choice to warn whenever a static function is declared but not defined or a non-inline static function is unused. But for plugsched, interface & fn_ptr functions defined in scheduler.ko is used for indiretion at runtime, rather than gcc compile stage. So, it's better to disable Wunused-function. Signed-off-by: Shanpei Chen --- src/Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Makefile b/src/Makefile index f780f17..071827b 100644 --- a/src/Makefile +++ b/src/Makefile @@ -39,3 +39,4 @@ scheduler-objs := $(obj-stubs) main.o sched_rebuild.o ldflags-y += -T $(plugsched_modpath)/scheduler.lds ccflags-n += -DSCHEDMOD_MEMPOOL +ccflags-y += -Wno-unused-function -- Gitee