summaryrefslogtreecommitdiff
path: root/src/test.c
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>1994-05-20 15:56:47 +0000
committerJim Meyering <jim@meyering.net>1994-05-20 15:56:47 +0000
commitcf1d805fec6f9fe69034b1a4c2d9b582a7e824b8 (patch)
treeee8b67907283c29d4af53e65daf9fcd12cd64801 /src/test.c
parentb98b0e107f67055d20db6005b6dee676a79c06a7 (diff)
downloadcoreutils-cf1d805fec6f9fe69034b1a4c2d9b582a7e824b8.tar.xz
(test_syntax_error, beyond): add __attribute__ ((noreturn))
Diffstat (limited to 'src/test.c')
-rw-r--r--src/test.c10
1 files changed, 10 insertions, 0 deletions
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;