From 6b50a5f219cbc07c1b6d5a6985d5f9954e7a6625 Mon Sep 17 00:00:00 2001 From: Christos Zoulas Date: Wed, 18 Apr 2018 01:15:49 +0000 Subject: add __noreturn__ to file_err{,x} --- src/file.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/file.h') 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 *, ...) -- cgit v1.2.1