summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuillem Jover <guillem@hadrons.org>2019-08-06 15:29:54 +0200
committerGuillem Jover <guillem@hadrons.org>2019-08-08 03:47:05 +0200
commitf34a5f71d92f5625875f16a883790de75dd4477d (patch)
treed4d068f4e2313f8f0fe827c8553dd268658973af
parent72c68868c87c1d31bc658b43c337e8c162d16997 (diff)
err: Mark error functions as non-returning with __dead2
-rw-r--r--include/bsd/err.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/include/bsd/err.h b/include/bsd/err.h
index cf043e4..ff37e55 100644
--- a/include/bsd/err.h
+++ b/include/bsd/err.h
@@ -47,10 +47,11 @@ void warnc(int code, const char *format, ...)
__printflike(2, 3);
void vwarnc(int code, const char *format, va_list ap)
__printflike(2, 0);
+
void errc(int status, int code, const char *format, ...)
- __printflike(3, 4);
+ __printflike(3, 4) __dead2;
void verrc(int status, int code, const char *format, va_list ap)
- __printflike(3, 0);
+ __printflike(3, 0) __dead2;
__END_DECLS
#endif