summaryrefslogtreecommitdiff
path: root/external
diff options
context:
space:
mode:
authorchristos <christos@NetBSD.org>2018-04-18 01:17:42 +0000
committerchristos <christos@NetBSD.org>2018-04-18 01:17:42 +0000
commit68eddd8a0323cb8317c03ed606674919e54bc6ab (patch)
treed324f3b062a97a150e2b4f6ce793a3b925021652 /external
parenta94a5aec70db5968578634437f6c361c1ee6cfb8 (diff)
add __noreturn__ attribute to file_err{,x}
Diffstat (limited to 'external')
-rw-r--r--external/bsd/file/dist/src/file.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/external/bsd/file/dist/src/file.h b/external/bsd/file/dist/src/file.h
index 0cb7616ce78..8f615d019ce 100644
--- a/external/bsd/file/dist/src/file.h
+++ b/external/bsd/file/dist/src/file.h
@@ -1,4 +1,4 @@
-/* $NetBSD: file.h,v 1.18 2018/04/15 19:45:32 christos Exp $ */
+/* $NetBSD: file.h,v 1.19 2018/04/18 01:17:42 christos Exp $ */
/*
* Copyright (c) Ian F. Darwin 1986-1995.
@@ -620,9 +620,9 @@ int enable_sandbox_full(void);
protected const char *file_getprogname(void);
protected void file_setprogname(const char *);
protected void file_err(int, const char *, ...)
- __attribute__((__format__(__printf__, 2, 3)));
+ __attribute__((__format__(__printf__, 2, 3), __noreturn__));
protected void file_errx(int, const char *, ...)
- __attribute__((__format__(__printf__, 2, 3)));
+ __attribute__((__format__(__printf__, 2, 3), __noreturn__));
protected void file_warn(const char *, ...)
__attribute__((__format__(__printf__, 1, 2)));
protected void file_warnx(const char *, ...)