Commit a4b7c9cd by Andreas Tobler Committed by Andreas Tobler

closures.c: Move defintion of MAYBE_UNUSED from here to ...

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
parent 2839c151
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> 2007-11-17 Andreas Tobler <a.tobler@schweiz.org>
* src/powerpc/sysv.S: Load correct cr to compare if we have long double. * src/powerpc/sysv.S: Load correct cr to compare if we have long double.
......
/* ----------------------------------------------------------------------- /* -----------------------------------------------------------------------
ffi_common.h - Copyright (c) 1996 Red Hat, Inc. 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 Common internal definitions and macros. Only necessary for building
libffi. libffi.
...@@ -18,7 +19,9 @@ extern "C" { ...@@ -18,7 +19,9 @@ extern "C" {
this is positioned. */ this is positioned. */
#ifdef __GNUC__ #ifdef __GNUC__
# define alloca __builtin_alloca # define alloca __builtin_alloca
# define MAYBE_UNUSED __attribute__((__unused__))
#else #else
# define MAYBE_UNUSED
# if HAVE_ALLOCA_H # if HAVE_ALLOCA_H
# include <alloca.h> # include <alloca.h>
# else # else
......
/* ----------------------------------------------------------------------- /* -----------------------------------------------------------------------
closures.c - Copyright (c) 2007 Red Hat, Inc. closures.c - Copyright (c) 2007 Red Hat, Inc.
Copyright (C) 2007 Free Software Foundation, Inc
Code to allocate and deallocate memory for closures. Code to allocate and deallocate memory for closures.
...@@ -149,8 +150,6 @@ selinux_enabled_check (void) ...@@ -149,8 +150,6 @@ selinux_enabled_check (void)
#endif #endif
#define MAYBE_UNUSED __attribute__((__unused__))
/* Declare all functions defined in dlmalloc.c as static. */ /* Declare all functions defined in dlmalloc.c as static. */
static void *dlmalloc(size_t); static void *dlmalloc(size_t);
static void dlfree(void*); static void dlfree(void*);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment