diff --git a/tests/kernel/workq/work/src/main.c b/tests/kernel/workq/work/src/main.c index 342fd59a05bcb6..002da6fb545d4f 100644 --- a/tests/kernel/workq/work/src/main.c +++ b/tests/kernel/workq/work/src/main.c @@ -4,6 +4,15 @@ * SPDX-License-Identifier: Apache-2.0 */ +/* This test covers deprecated API. Avoid inappropriate diagnostics + * about the use of that API. + */ +#include +#undef __deprecated +#define __deprecated +#undef __DEPRECATED_MACRO +#define __DEPRECATED_MACRO + #include #define STACK_SIZE (1024 + CONFIG_TEST_EXTRA_STACKSIZE) diff --git a/tests/kernel/workq/work_queue/src/main.c b/tests/kernel/workq/work_queue/src/main.c index f73803165d5a0f..83b07ae5f5cfd0 100644 --- a/tests/kernel/workq/work_queue/src/main.c +++ b/tests/kernel/workq/work_queue/src/main.c @@ -6,6 +6,15 @@ #include +/* This test covers deprecated API. Avoid inappropriate diagnostics + * about the use of that API. + */ +#include +#undef __deprecated +#define __deprecated +#undef __DEPRECATED_MACRO +#define __DEPRECATED_MACRO + #include #include #include