aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Forney <mforney@mforney.org>2022-04-23 14:53:33 -0700
committerMichael Forney <mforney@mforney.org>2022-04-23 14:53:33 -0700
commit70fe9ef1810cc6c05bde9eb0970363c35fa7e802 (patch)
treecdb516dec6ecb7fa0be9f5e5d5aa95ebad6d64d3
parentcff37cf15a35cd833d33f26591d99344574a79f0 (diff)
Remove use of C11 noreturn
-rw-r--r--driver.c3
-rw-r--r--main.c3
-rw-r--r--util.c3
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 <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];
diff --git a/main.c b/main.c
index e35419a..96fea3e 100644
--- a/main.c
+++ b/main.c
@@ -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);
diff --git a/util.c b/util.c
index 724752d..950e3bd 100644
--- a/util.c
+++ b/util.c
@@ -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;