Skip to content

amu_smcf_drv/unit_test: Fix compiler error

Tarek El-Sherbiny requested to merge te/fix-unit-test-for-gcc-13_2 into main

On gcc 13.2.0 the following error is flagged: storing the address of local variable ‘data_api’ in ‘amu_smcf_drv_ctx.data_api’ [-Werror=dangling-pointer=].

Storing a local pointer in a global variable should be avoided.

Signed-off-by: Tarek El-Sherbiny tarek.el-sherbiny@arm.com

Merge request reports