pike.git/
src/
global.h
Branch:
Tag:
Non-build tags
All tags
No tags
2014-11-16
2014-11-16 12:27:02 by Henrik Grubbström (Grubba) <grubba@grubba.org>
2a84e9a2161a88ae340f6992480bd70a91ea024a (
12
lines) (+
8
/-
4
)
[
Show
|
Annotate
]
Branch:
8.1
Build: Added PIKE_UNUSED_ATTRIBUTE.
558:
/* 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