diff options
author | Asbjørn Sloth Tønnesen <ast@2e8.dk> | 2020-07-22 20:33:18 +0000 |
---|---|---|
committer | Asbjørn Sloth Tønnesen <ast@2e8.dk> | 2020-07-30 22:56:14 +0000 |
commit | 391b27bc8bb174acedb54fc621e14a29e0a2530e (patch) | |
tree | 33bcfff196b6501d923a8a44bbca737d5e82a286 | |
parent | 6d3b2bfdca905ba0ef356bd6ec1f1ecdd74cfbc1 (diff) | |
download | lem-391b27bc8bb174acedb54fc621e14a29e0a2530e.tar.gz lem-391b27bc8bb174acedb54fc621e14a29e0a2530e.tar.xz lem-391b27bc8bb174acedb54fc621e14a29e0a2530e.zip |
mark oom() as noreturnHEADmasterfix-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.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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) { |