pike.git
/
src
/
global.h
version
»
Context lines:
10
20
40
80
file
none
3
pike.git/src/global.h:554:
#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_ATTRIBUTE # ifdef __GNUC__ # define PIKE_UNUSED_ATTRIBUTE __attribute__((unused))
+
# if (__GNUC__ > 3) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4)
+
# define PIKE_WARN_UNUSED_RESULT_ATTRIBUTE __attribute__((warn_unused_result))
+
# else /* GCC < 3.4 */
+
# define PIKE_WARN_UNUSED_RESULT_ATTRIBUTE
+
# endif
# else # define PIKE_UNUSED_ATTRIBUTE
-
+
# define PIKE_WARN_UNUSED_RESULT_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) #endif #ifdef PIKE_DEBUG # define DEBUGUSED(x) x