summaryrefslogtreecommitdiff
path: root/bin/ksh/expr.c
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>2004-12-18 22:42:27 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>2004-12-18 22:42:27 +0000
commit8677fe28d1be552d8ed7fe8a200da3c727ec41ff (patch)
treeab5c11d6463dcc4f3decfa0aa002fc8e9a5a2b2d /bin/ksh/expr.c
parentb277f4142edf5132e56ad2e197b0cd4ec79fa9b6 (diff)
remove GCC_FUNC_ATTR/GCC_FUNC_ATTR2 and just use __attribute__ directly
(we define it away in sys/cdefs.h if it is not supported).
Diffstat (limited to 'bin/ksh/expr.c')
-rw-r--r--bin/ksh/expr.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/ksh/expr.c b/bin/ksh/expr.c
index 382c27e6dec..57b254183be 100644
--- a/bin/ksh/expr.c
+++ b/bin/ksh/expr.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: expr.c,v 1.12 2004/12/18 21:25:44 millert Exp $ */
+/* $OpenBSD: expr.c,v 1.13 2004/12/18 22:42:26 millert Exp $ */
/*
* Korn expression evaluation
@@ -129,7 +129,7 @@ enum error_type { ET_UNEXPECTED, ET_BADLIT, ET_RECURSIVE,
ET_LVALUE, ET_RDONLY, ET_STR };
static void evalerr(Expr_state *es, enum error_type type,
- const char *str) GCC_FUNC_ATTR(noreturn);
+ const char *str) __attribute__((__noreturn__));
static struct tbl *evalexpr(Expr_state *es, enum prec prec);
static void token(Expr_state *es);
static struct tbl *do_ppmm(Expr_state *es, enum token op,