From 70fe9ef1810cc6c05bde9eb0970363c35fa7e802 Mon Sep 17 00:00:00 2001 From: Michael Forney Date: Sat, 23 Apr 2022 14:53:33 -0700 Subject: Remove use of C11 noreturn --- driver.c | 3 +-- main.c | 3 +-- util.c | 3 +-- 3 files changed, 3 insertions(+), 6 deletions(-) diff --git a/driver.c b/driver.c index 09afe0f..1015153 100644 --- a/driver.c +++ b/driver.c @@ -5,7 +5,6 @@ #include #include #include -#include #include #include @@ -294,7 +293,7 @@ kill: } } -static noreturn void +static void buildexe(struct input *inputs, size_t ninputs, char *output) { struct stageinfo *s = &stages[LINK]; diff --git a/main.c b/main.c index e35419a..96fea3e 100644 --- a/main.c +++ b/main.c @@ -2,12 +2,11 @@ #include #include #include -#include #include "util.h" #include "arg.h" #include "cc.h" -static noreturn void +static void usage(void) { fprintf(stderr, "usage: %s [input]\n", argv0); diff --git a/util.c b/util.c index 724752d..950e3bd 100644 --- a/util.c +++ b/util.c @@ -4,7 +4,6 @@ #include #include #include -#include #include #include "util.h" @@ -33,7 +32,7 @@ warn(const char *fmt, ...) va_end(ap); } -noreturn void +void fatal(const char *fmt, ...) { va_list ap; -- cgit v1.2.3