From: Jim Meyering Date: Fri, 20 May 1994 15:56:47 +0000 (+0000) Subject: (test_syntax_error, beyond): add __attribute__ ((noreturn)) X-Git-Tag: textutils-1_12_1~690 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=cf1d805fec6f9fe69034b1a4c2d9b582a7e824b8;p=thirdparty%2Fcoreutils.git (test_syntax_error, beyond): add __attribute__ ((noreturn)) --- diff --git a/src/test.c b/src/test.c index a53362db86..21a4487a9e 100644 --- a/src/test.c +++ b/src/test.c @@ -133,6 +133,16 @@ static int or (); static int group_member (); +#if __GNUC__ >= 2 && defined (__GNUC_MINOR__) \ + && __GNUC_MINOR__ >= 5 && !defined (__STRICT_ANSI__) +#define NO_RETURN_ATTRIBUTE __attribute__ ((noreturn)) +#else +#define NO_RETURN_ATTRIBUTE /* empty */ +#endif + +static void test_syntax_error () NO_RETURN_ATTRIBUTE; +static void beyond () NO_RETURN_ATTRIBUTE; + static void test_syntax_error (format, arg) char *format, *arg;