Skip to content

Commit d806240

Browse files
authored
Task: fix compiler warning for architectures that does not define portARMV8M_MINOR_VERSION (#1144)
1 parent 40031cf commit d806240

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/task.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@
6565
#define tskMPU_REGION_EXECUTE_NEVER ( 1U << 2U )
6666
#define tskMPU_REGION_NORMAL_MEMORY ( 1U << 3U )
6767
#define tskMPU_REGION_DEVICE_MEMORY ( 1U << 4U )
68-
#if ( portARMV8M_MINOR_VERSION >= 1 )
68+
#if defined( portARMV8M_MINOR_VERSION ) && ( portARMV8M_MINOR_VERSION >= 1 )
6969
#define tskMPU_REGION_PRIVILEGED_EXECUTE_NEVER ( 1U << 5U )
7070
#endif /* portARMV8M_MINOR_VERSION >= 1 */
7171

0 commit comments

Comments
 (0)