Building with just AN521, and no other options, I get the following warnings.
[ 37%] Building C object secure_fw/spm/CMakeFiles/tfm_spm.dir/__/__/interface/src/log/tfm_log_raw.o trusted-firmware-m/secure_fw/spm/cmsis_func/spm_func.c: In function 'tfm_spm_seal_psp_stacks': trusted-firmware-m/secure_fw/spm/cmsis_func/spm_func.c:93:5: warning: array subscript 1 is outside array bounds of 'uint32_t[1]' {aka 'long unsigned int[1]'} [-Warray-bounds] 93 | *(arm_lib_stck_seal_base + 1) = TFM_STACK_SEAL_VALUE; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from trusted-firmware-m/secure_fw/spm/cmsis_func/spm_func.c:25: trusted-firmware-m/secure_fw/spm/cmsis_func/spm_func.c:58:18: note: while referencing 'Image$$ARM_LIB_STACK_SEAL$$ZI$$Base' 58 | REGION_DECLARE_T(Image$$, ARM_LIB_STACK_SEAL, $$ZI$$Base, uint32_t); | ^~~~~~~ trusted-firmware-m/platform/include/region.h:12:25: note: in definition of macro 'REGION' 12 | #define REGION(a, b, c) a##b##c | ^ trusted-firmware-m/platform/include/region.h:15:47: note: in expansion of macro 'REGION_NAME' 15 | #define REGION_DECLARE_T(a, b, c, t) extern t REGION_NAME(a, b, c) | ^~~~~~~~~~~ trusted-firmware-m/secure_fw/spm/cmsis_func/spm_func.c:58:1: note: in expansion of macro 'REGION_DECLARE_T' 58 | REGION_DECLARE_T(Image$$, ARM_LIB_STACK_SEAL, $$ZI$$Base, uint32_t); | ^~~~~~~~~~~~~~~~ trusted-firmware-m/secure_fw/spm/cmsis_func/spm_func.c: In function 'tfm_spm_sfn_request_handler': trusted-firmware-m/secure_fw/spm/cmsis_func/spm_func.c:452:31: warning: 'iovecs.orig_outvec' may be used uninitialized in this function [-Wmaybe-uninitialized] 452 | runtime_data->orig_outvec = iovec_ptr->orig_outvec; | ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ trusted-firmware-m/secure_fw/spm/cmsis_func/spm_func.c:805:27: note: 'iovecs.orig_outvec' was declared here 805 | struct iovec_params_t iovecs; | ^~~~~~ trusted-firmware-m/secure_fw/spm/cmsis_func/spm_func.c:448:5: warning: 'iovecs.out_len' may be used uninitialized in this function [-Wmaybe-uninitialize] 448 | for (i = 0U; i < runtime_data->iovec_args.out_len; ++i) { | ^~~ trusted-firmware-m/secure_fw/spm/cmsis_func/spm_func.c:805:27: note: 'iovecs.out_len' was declared here 805 | struct iovec_params_t iovecs; | ^~~~~~ trusted-firmware-m/secure_fw/spm/cmsis_func/spm_func.c:443:5: warning: 'iovecs.in_len' may be used uninitialized in this function [-Wmaybe-uninitialized] 443 | for (i = 0U; i < runtime_data->iovec_args.in_len; ++i) { | ^~~ trusted-firmware-m/secure_fw/spm/cmsis_func/spm_func.c:805:27: note: 'iovecs.in_len' was declared here 805 | struct iovec_params_t iovecs; | ^~~~~~