diff --git a/src/include/sof/trace/preproc.h b/src/include/sof/trace/preproc.h index 17a7994fcb43..8f9677d4f399 100644 --- a/src/include/sof/trace/preproc.h +++ b/src/include/sof/trace/preproc.h @@ -158,8 +158,10 @@ return_t META_CONCAT(prefix, postfix) (args) /* counteract compiler warning about unused variables */ +#ifndef UNUSED #define UNUSED(arg1, ...) do { META_RECURSE( \ META_MAP_AGGREGATE(1, _META_VOID2, _META_VOID(arg1), __VA_ARGS__)); \ } while (0) +#endif #endif /* __SOF_TRACE_PREPROC_H__ */