From 391b27bc8bb174acedb54fc621e14a29e0a2530e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Asbj=C3=B8rn=20Sloth=20T=C3=B8nnesen?= Date: Wed, 22 Jul 2020 20:33:18 +0000 Subject: mark oom() as noreturn MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit bin/lem.c: In function ‘runqueue_pop’: bin/lem.c:306:3: warning: this statement may fall through [-Wimplicit-fallthrough=] 306 | oom(); | ^~~~~ bin/lem.c:308:2: note: here 308 | default: /* this shouldn't happen */ | ^~~~~~~ bin/lem.c: In function ‘queue_file’: bin/lem.c:335:3: warning: this statement may fall through [-Wimplicit-fallthrough=] 335 | oom(); | ^~~~~ bin/lem.c:337:2: note: here 337 | default: | ^~~~~~~ Signed-off-by: Asbjørn Sloth Tønnesen --- bin/lem.c | 1 + 1 file changed, 1 insertion(+) diff --git a/bin/lem.c b/bin/lem.c index 46143b4..433849d 100644 --- a/bin/lem.c +++ b/bin/lem.c @@ -69,6 +69,7 @@ static lua_State *L; static struct lem_runqueue rq; static int exit_status = EXIT_SUCCESS; +__attribute__((noreturn)) static void oom(void) { -- cgit v1.2.1