From 0cda941fa18e868e79d56a1699edb61091bf44fb Mon Sep 17 00:00:00 2001 From: Corinna Vinschen Date: Wed, 2 Feb 2011 10:16:30 +0000 Subject: [PATCH] * include/err.h (err): Add noreturn attribute. (errx): Ditto. (verr): Ditto. (verrx): Ditto. --- winsup/cygwin/ChangeLog | 7 +++++++ winsup/cygwin/include/err.h | 14 +++++++------- 2 files changed, 14 insertions(+), 7 deletions(-) diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog index 376618d2f..b7dad6ca1 100644 --- a/winsup/cygwin/ChangeLog +++ b/winsup/cygwin/ChangeLog @@ -1,3 +1,10 @@ +2011-02-02 Corinna Vinschen + + * include/err.h (err): Add noreturn attribute. + (errx): Ditto. + (verr): Ditto. + (verrx): Ditto. + 2011-02-02 Corinna Vinschen * path.cc (conv_path_list): Remove enclosing quotes and trailing diff --git a/winsup/cygwin/include/err.h b/winsup/cygwin/include/err.h index d1002c527..21df32ece 100644 --- a/winsup/cygwin/include/err.h +++ b/winsup/cygwin/include/err.h @@ -1,6 +1,6 @@ /* err.h - Copyright 2003 Red Hat, Inc. + Copyright 2003, 2011 Red Hat, Inc. This file is part of Cygwin. @@ -16,17 +16,17 @@ details. */ __BEGIN_DECLS -extern void warn (const char *fmt, ...); -extern void warnx (const char *fmt, ...); +extern void warn (const char *fmt, ...) +extern void warnx (const char *fmt, ...) -extern void err (int eval, const char *fmt, ...); -extern void errx (int eval, const char *fmt, ...); +extern void err (int eval, const char *fmt, ...) __attribute__ ((__noreturn__)); +extern void errx (int eval, const char *fmt, ...) __attribute__ ((__noreturn__)); extern void vwarn (const char *fmt, va_list ap); extern void vwarnx (const char *fmt, va_list ap); -extern void verr (int eval, const char *fmt, va_list ap); -extern void verrx (int eval, const char *fmt, va_list ap); +extern void verr (int eval, const char *fmt, va_list ap) __attribute__ ((__noreturn__)); +extern void verrx (int eval, const char *fmt, va_list ap) __attribute__ ((__noreturn__)); __END_DECLS -- 2.43.5