diff options
author | Michael Forney <mforney@mforney.org> | 2022-04-23 14:53:33 -0700 |
---|---|---|
committer | Michael Forney <mforney@mforney.org> | 2022-04-23 14:53:33 -0700 |
commit | 70fe9ef1810cc6c05bde9eb0970363c35fa7e802 (patch) | |
tree | cdb516dec6ecb7fa0be9f5e5d5aa95ebad6d64d3 | |
parent | cff37cf15a35cd833d33f26591d99344574a79f0 (diff) |
Remove use of C11 noreturn
-rw-r--r-- | driver.c | 3 | ||||
-rw-r--r-- | main.c | 3 | ||||
-rw-r--r-- | util.c | 3 |
3 files changed, 3 insertions, 6 deletions
@@ -5,7 +5,6 @@ #include <stdint.h> #include <stdio.h> #include <stdlib.h> -#include <stdnoreturn.h> #include <string.h> #include <fcntl.h> @@ -294,7 +293,7 @@ kill: } } -static noreturn void +static void buildexe(struct input *inputs, size_t ninputs, char *output) { struct stageinfo *s = &stages[LINK]; @@ -2,12 +2,11 @@ #include <stdint.h> #include <stdio.h> #include <stdlib.h> -#include <stdnoreturn.h> #include "util.h" #include "arg.h" #include "cc.h" -static noreturn void +static void usage(void) { fprintf(stderr, "usage: %s [input]\n", argv0); @@ -4,7 +4,6 @@ #include <stdint.h> #include <stdio.h> #include <stdlib.h> -#include <stdnoreturn.h> #include <string.h> #include "util.h" @@ -33,7 +32,7 @@ warn(const char *fmt, ...) va_end(ap); } -noreturn void +void fatal(const char *fmt, ...) { va_list ap; |