From 0f6bd005de1a9b8b0cfd397e70f9f0ec5d31e67e Mon Sep 17 00:00:00 2001 From: Emil Velikov Date: Tue, 17 Sep 2024 10:50:45 +0100 Subject: [PATCH] depmod: annotate fatal_oom() as noreturn ... in case the compiler cannot deduce it from the exit(3) within. Signed-off-by: Emil Velikov Link: https://github.com/kmod-project/kmod/pull/135 Signed-off-by: Lucas De Marchi --- tools/depmod.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/depmod.c b/tools/depmod.c index ab1fa5ad..863e7fc9 100644 --- a/tools/depmod.c +++ b/tools/depmod.c @@ -152,7 +152,7 @@ enum node_offset { INDEX_NODE_MASK = 0x0FFFFFFF, /* Offset value */ }; -static void fatal_oom(void) +static noreturn void fatal_oom(void) { ERR("out of memory\n"); exit(EXIT_FAILURE); -- 2.47.2