pike.git/src/global.h:551: Inside #if undefined(INLINE)
#if defined(__GNUC__) && !defined(PIKE_DEBUG) && !defined(lint)
#define INLINE inline
#else
#define INLINE
#endif
#endif
/* Suppress compiler warnings for unused parameters if possible. The mangling of
argument name is required to catch when an unused argument later is used without
removing the annotation. */
- #ifndef PIKE_UNUSED
+ #ifndef PIKE_UNUSED_ATTRIBUTE
# ifdef __GNUC__
- # define PIKE_UNUSED(x) PIKE_CONCAT(x,_UNUSED) __attribute__((unused))
+ # define PIKE_UNUSED_ATTRIBUTE __attribute__((unused))
# else
- # define PIKE_UNUSED(x) PIKE_CONCAT(x,_UNUSED)
+ # define PIKE_UNUSED_ATTRIBUTE
# endif
#endif
-
+ #ifndef PIKE_UNUSED
+ # define PIKE_UNUSED(x) PIKE_CONCAT(x,_UNUSED) PIKE_UNUSED_ATTRIBUTE
+ #endif
#ifndef UNUSED
- # define UNUSED(x) PIKE_UNUSED(x)
+ # define UNUSED(x) PIKE_UNUSED(x)
#endif
#ifdef PIKE_DEBUG
# define DEBUGUSED(x) x
#else
# define DEBUGUSED(x) PIKE_UNUSED(x)
#endif
#ifdef DEBUG_MALLOC
# define DMALLOCUSED(x) x
#else
# define DMALLOCUSED(x) PIKE_UNUSED(x)