summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAsbjørn Sloth Tønnesen <ast@2e8.dk>2020-07-22 20:33:18 +0000
committerAsbjørn Sloth Tønnesen <ast@2e8.dk>2020-07-30 22:56:14 +0000
commit391b27bc8bb174acedb54fc621e14a29e0a2530e (patch)
tree33bcfff196b6501d923a8a44bbca737d5e82a286
parent6d3b2bfdca905ba0ef356bd6ec1f1ecdd74cfbc1 (diff)
downloadlem-fix-stdout.tar.gz
lem-fix-stdout.tar.xz
lem-fix-stdout.zip
mark oom() as noreturnfix-stdout
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 <ast@2e8.dk>
-rw-r--r--bin/lem.c1
1 files changed, 1 insertions, 0 deletions
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)
{