From d806240dfe6b9951ff33f9c83b79d299108ac960 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=81=82=E3=81=8F?= Date: Wed, 11 Sep 2024 14:56:16 +0100 Subject: [PATCH] Task: fix compiler warning for architectures that does not define portARMV8M_MINOR_VERSION (#1144) --- include/task.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/task.h b/include/task.h index f3e0d496b..60535254c 100644 --- a/include/task.h +++ b/include/task.h @@ -65,7 +65,7 @@ #define tskMPU_REGION_EXECUTE_NEVER ( 1U << 2U ) #define tskMPU_REGION_NORMAL_MEMORY ( 1U << 3U ) #define tskMPU_REGION_DEVICE_MEMORY ( 1U << 4U ) -#if ( portARMV8M_MINOR_VERSION >= 1 ) +#if defined( portARMV8M_MINOR_VERSION ) && ( portARMV8M_MINOR_VERSION >= 1 ) #define tskMPU_REGION_PRIVILEGED_EXECUTE_NEVER ( 1U << 5U ) #endif /* portARMV8M_MINOR_VERSION >= 1 */