Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Trace: Avoid redefine of UNUSED() macro
The xt-clang RI-2022.10 compiler headers define UNUSED. With this patch the definition is done only if the macro is undefined. This fixes error: In file included sof/tools/tplg_parser/pga.c:17: In file included sof/tools/tplg_parser/ ../../src/include/sof/lib/uuid.h:11: In file included sof/tools/tplg_parser/ ../../src/include/sof/common.h:105: /home/singalsu/work/current/sof/sof/tools/tplg_parser/ ../../src/include/sof/trace/preproc.h:162:9: error: 'UNUSED' macro redefined [-Werror,-Wmacro-redefined] #define UNUSED(arg1, ...) do { META_RECURSE( xtensa/XtDevTools/install/tools/RI-2022.10-linux/XtensaTools/ xtensa-elf/include/xtensa/xtensa-types.h:60:9: note: previous definition is here #define UNUSED(x) ((void)(x)) Signed-off-by: Seppo Ingalsuo <[email protected]>
- Loading branch information