toolchain: xcc: nullify __deprecated macro
XCC does not support using the deprecated attribute for enum as it is based on old GCC 4.2. So nullify the macro to avoid compilation errors. Fixes #33548 Signed-off-by: Daniel Leung <daniel.leung@intel.com>
This commit is contained in:
parent
d8f698703b
commit
21f6217313
1 changed files with 9 additions and 0 deletions
|
@ -138,4 +138,13 @@
|
||||||
#define __builtin_unreachable() do { __ASSERT(false, "Unreachable code"); } \
|
#define __builtin_unreachable() do { __ASSERT(false, "Unreachable code"); } \
|
||||||
while (true)
|
while (true)
|
||||||
|
|
||||||
|
#ifdef __deprecated
|
||||||
|
/*
|
||||||
|
* XCC does not support using deprecated attribute in enum,
|
||||||
|
* so just nullify it here to avoid compilation errors.
|
||||||
|
*/
|
||||||
|
#undef __deprecated
|
||||||
|
#define __deprecated
|
||||||
|
#endif
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue