summaryrefslogtreecommitdiff
path: root/libffi/include
diff options
context:
space:
mode:
authorandreast <andreast@138bc75d-0d04-0410-961f-82ee72b054a4>2007-11-25 19:24:23 +0000
committerandreast <andreast@138bc75d-0d04-0410-961f-82ee72b054a4>2007-11-25 19:24:23 +0000
commit5036bf251f3bab0091f25cacc29f3884e4d24b9b (patch)
tree0e660c22266bb1d9983c520da459607eeb4e859f /libffi/include
parent0307ea24e7892818dcec71c5265a7193f2953618 (diff)
downloadgcc-5036bf251f3bab0091f25cacc29f3884e4d24b9b.tar.gz
2007-11-25 Andreas Tobler <a.tobler@schweiz.org>
* src/closures.c: Move defintion of MAYBE_UNUSED from here to ... * include/ffi_common.h: ... here. Update copyright. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@130413 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libffi/include')
-rw-r--r--libffi/include/ffi_common.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/libffi/include/ffi_common.h b/libffi/include/ffi_common.h
index 3620a2e162a..6af4b5f21fa 100644
--- a/libffi/include/ffi_common.h
+++ b/libffi/include/ffi_common.h
@@ -1,5 +1,6 @@
/* -----------------------------------------------------------------------
ffi_common.h - Copyright (c) 1996 Red Hat, Inc.
+ Copyright (C) 2007 Free Software Foundation, Inc
Common internal definitions and macros. Only necessary for building
libffi.
@@ -18,7 +19,9 @@ extern "C" {
this is positioned. */
#ifdef __GNUC__
# define alloca __builtin_alloca
+# define MAYBE_UNUSED __attribute__((__unused__))
#else
+# define MAYBE_UNUSED
# if HAVE_ALLOCA_H
# include <alloca.h>
# else