]> begriffs open source - freertos/commit
Define default values of macros before first use (#298)
authorGaurav-Aggarwal-AWS <33462878+aggarg@users.noreply.github.com>
Fri, 2 Apr 2021 14:35:52 +0000 (07:35 -0700)
committerGitHub <noreply@github.com>
Fri, 2 Apr 2021 14:35:52 +0000 (07:35 -0700)
commitb08c19f74560dc8885eaf04c47483817d28e13e2
tree63ace450d974c79ca7777bd929b96d2a526d53a6
parent534eba66ce4a5bda45d5edeeb81ac5a3cf6d0df8
Define default values of macros before first use (#298)

configSTACK_ALLOCATION_FROM_SEPARATE_HEAP was added recently in
https://github.com/FreeRTOS/FreeRTOS-Kernel/pull/267. This macro was
used in portable.h before its default value was defined, resulting in a
warning when built with -Wundef. This changes moves the default value
definition for configSTACK_ALLOCATION_FROM_SEPARATE_HEAP to portable.h
to ensure that it is defined before first use.

portUSING_MPU_WRAPPERS check in mpu_wrappers.h was updated in
https://github.com/FreeRTOS/FreeRTOS-Kernel/pull/285. The new check
results in a warning when built with -Wundef because
portUSING_MPU_WRAPPERS is not defined yet. This changes adds the default
value definition for portUSING_MPU_WRAPPERS to portable.h to ensure that
it is defined before first use.

Signed-off-by: Gaurav Aggarwal <aggarg@amazon.com>
include/FreeRTOS.h
include/mpu_wrappers.h
include/portable.h