diff --git a/src/pulsecore/macro.h b/src/pulsecore/macro.h index e36b6ce82..21c3e6c62 100644 --- a/src/pulsecore/macro.h +++ b/src/pulsecore/macro.h @@ -77,6 +77,12 @@ static inline size_t PA_PAGE_ALIGN(size_t l) { return (l + PA_PAGE_SIZE - 1) & ~(PA_PAGE_SIZE - 1); } +#if defined(__GNUC__) + #define PA_UNUSED __attribute__ ((unused)) +#else + #define PA_UNUSED +#endif + #define PA_ELEMENTSOF(x) (sizeof(x)/sizeof((x)[0])) #if defined(__GNUC__)