From: Emil Velikov Date: Tue, 17 Sep 2024 09:50:45 +0000 (+0100) Subject: depmod: annotate fatal_oom() as noreturn X-Git-Tag: v34~323 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=0f6bd005de1a9b8b0cfd397e70f9f0ec5d31e67e;p=thirdparty%2Fkmod.git 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 --- 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);