From bc181596766ffb9685e712455e33f2c0a0c0271e Mon Sep 17 00:00:00 2001 From: Kumar Gala Date: Thu, 3 Oct 2019 18:32:35 -0500 Subject: [PATCH] kernel: Fix gcc-9.2 warning with _StackCheckHandler Remove FUNC_NORETURN attribute from _StackCheckHandler to address the following warning from gcc-9.2: kernel/compiler_stack_protect.c:62:32: error: '__stack_chk_fail' specifies less restrictive attribute than its target '_StackCheckHandler': 'noreturn' [-Werror=missing-attributes] Signed-off-by: Kumar Gala --- kernel/compiler_stack_protect.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/compiler_stack_protect.c b/kernel/compiler_stack_protect.c index ce645b20c90..2a0dc37f75e 100644 --- a/kernel/compiler_stack_protect.c +++ b/kernel/compiler_stack_protect.c @@ -32,7 +32,7 @@ * * @return Does not return */ -void FUNC_NORETURN _StackCheckHandler(void) +void _StackCheckHandler(void) { /* Stack canary error is a software fatal condition; treat it as such. */