From cf1d805fec6f9fe69034b1a4c2d9b582a7e824b8 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Fri, 20 May 1994 15:56:47 +0000 Subject: (test_syntax_error, beyond): add __attribute__ ((noreturn)) --- src/test.c | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/test.c') diff --git a/src/test.c b/src/test.c index a53362db8..21a4487a9 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; -- cgit v1.2.3-70-g09d2