Skip to content
Commit 249524da authored by Tarek El-Sherbiny's avatar Tarek El-Sherbiny
Browse files

sensor_smcf_drv/unit_test: Fix compiler error



On gcc 13.2.0 the following error is flagged:
storing the address of local variable ‘data_api’ in
‘sensor_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's avatarTarek El-Sherbiny <tarek.el-sherbiny@arm.com>
parent 5a008105
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment