diff --git a/src/gallium/auxiliary/os/os_misc.h b/src/gallium/auxiliary/os/os_misc.h index 5029ab9..4bb6939 100644 --- a/src/gallium/auxiliary/os/os_misc.h +++ b/src/gallium/auxiliary/os/os_misc.h @@ -43,6 +43,13 @@ # include /* getpid() */ #endif +#ifdef __GNUC__ +#define UNUSED __attribute__((unused)) +#define MAYBE_UNUSED __attribute__((unused)) +#else +#define UNUSED +#define MAYBE_UNUSED +#endif #ifdef __cplusplus extern "C" {