]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
(test_syntax_error, beyond): add __attribute__ ((noreturn))
authorJim Meyering <jim@meyering.net>
Fri, 20 May 1994 15:56:47 +0000 (15:56 +0000)
committerJim Meyering <jim@meyering.net>
Fri, 20 May 1994 15:56:47 +0000 (15:56 +0000)
src/test.c

index a53362db8631888108a2a7e58b1707bf617bf428..21a4487a9ed7806c3402cf4fc1396cd941e30e29 100644 (file)
@@ -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;