closures.c: Move defintion of MAYBE_UNUSED from here to ...
authorAndreas Tobler <a.tobler@schweiz.org>
Sun, 25 Nov 2007 19:24:23 +0000 (19:24 +0000)
committerAndreas Tobler <andreast@gcc.gnu.org>
Sun, 25 Nov 2007 19:24:23 +0000 (20:24 +0100)
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.

From-SVN: r130413

libffi/ChangeLog
libffi/include/ffi_common.h
libffi/src/closures.c

index 8aaef6e581bcf1a3847eaa7b80c1084f13ef2175..689bc452a7a20666511761a623f3dadf66b56105 100644 (file)
@@ -1,3 +1,9 @@
+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.
+
 2007-11-17  Andreas Tobler  <a.tobler@schweiz.org>
 
        * src/powerpc/sysv.S: Load correct cr to compare if we have long double.
index 3620a2e162a80291c449afdfd413e9f9c1ee2330..6af4b5f21fa0e6b7a126ba63249e9e3c3338deaf 100644 (file)
@@ -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
index ec956d04f265967f8d84292908ae8557498ab0af..c441b870f70bd5a3470f8c7a71b52b2f8d8c622c 100644 (file)
@@ -1,5 +1,6 @@
 /* -----------------------------------------------------------------------
    closures.c - Copyright (c) 2007  Red Hat, Inc.
+   Copyright (C) 2007 Free Software Foundation, Inc
 
    Code to allocate and deallocate memory for closures.
 
@@ -149,8 +150,6 @@ selinux_enabled_check (void)
 
 #endif
 
-#define MAYBE_UNUSED __attribute__((__unused__))
-
 /* Declare all functions defined in dlmalloc.c as static.  */
 static void *dlmalloc(size_t);
 static void dlfree(void*);