From 11e06b844f5d620567b8e87a154e20a65fa2ecae Mon Sep 17 00:00:00 2001 From: Kelvin Sherlock Date: Mon, 26 Dec 2016 12:27:19 -0500 Subject: [PATCH] mingw noreturn. --- mingw/err.h | 19 ++++++------------- 1 file changed, 6 insertions(+), 13 deletions(-) diff --git a/mingw/err.h b/mingw/err.h index aef5b5d..47b6254 100644 --- a/mingw/err.h +++ b/mingw/err.h @@ -33,25 +33,18 @@ #ifndef _ERR_H_ #define _ERR_H_ -/* - * Don't use va_list in the err/warn prototypes. Va_list is typedef'd in two - * places ( and ), so if we include one - * of them here we may collide with the utility's includes. It's unreasonable - * for utilities to have to include one of them to include err.h, so we get - * __va_list from and use it. - */ #include #ifdef __cplusplus extern "C" { #endif -void err(int, const char *, ...); -void verr(int, const char *, va_list); -void errc(int, int, const char *, ...); -void verrc(int, int, const char *, va_list); -void errx(int, const char *, ...); -void verrx(int, const char *, va_list); +void err(int, const char *, ...) __MINGW_ATTRIB_NORETURN; +void verr(int, const char *, va_list) __MINGW_ATTRIB_NORETURN; +void errc(int, int, const char *, ...) __MINGW_ATTRIB_NORETURN; +void verrc(int, int, const char *, va_list) __MINGW_ATTRIB_NORETURN; +void errx(int, const char *, ...) __MINGW_ATTRIB_NORETURN; +void verrx(int, const char *, va_list) __MINGW_ATTRIB_NORETURN; void warn(const char *, ...); void vwarn(const char *, va_list); void warnc(int, const char *, ...);