summaryrefslogtreecommitdiff
path: root/src/file.h
diff options
context:
space:
mode:
authorChristos Zoulas <christos@zoulas.com>2018-04-18 01:15:49 +0000
committerChristos Zoulas <christos@zoulas.com>2018-04-18 01:15:49 +0000
commit6b50a5f219cbc07c1b6d5a6985d5f9954e7a6625 (patch)
tree44ed13759d2627c0b91ac6e7833bb2ce173bd13f /src/file.h
parent4a8708630f211173e4c43e59470d36eaa0de3fdd (diff)
downloadfile-git-6b50a5f219cbc07c1b6d5a6985d5f9954e7a6625.tar.gz
add __noreturn__ to file_err{,x}
Diffstat (limited to 'src/file.h')
-rw-r--r--src/file.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/file.h b/src/file.h
index 66598bc6..37870d12 100644
--- a/src/file.h
+++ b/src/file.h
@@ -27,7 +27,7 @@
*/
/*
* file.h - definitions for file(1) program
- * @(#)$File: file.h,v 1.191 2018/02/21 21:26:00 christos Exp $
+ * @(#)$File: file.h,v 1.192 2018/04/18 01:15:49 christos Exp $
*/
#ifndef __file_h__
@@ -618,9 +618,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 *, ...)