You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix build warnings due to defined but unused variables and to declared
but not defined functions.
.../trusted-firmware-m/platform/ext/common/template/flash_otp_nv_counters_backend.c:172:14: warning: unused variable 'backup_swap_count' [-Wunused-variable]
172 | uint32_t backup_swap_count;
| ^~~~~~~~~~~~~~~~~
.../trusted-firmware-m/platform/ext/common/template/flash_otp_nv_counters_backend.c:22:28: warning: 'create_or_restore_layout' declared 'static' but never defined [-Wunused-function]
22 | static enum tfm_plat_err_t create_or_restore_layout(void);
| ^~~~~~~~~~~~~~~~~~~~~~~~
.../trusted-firmware-m/platform/ext/common/template/flash_otp_nv_counters_backend.c:122:16: warning: 'block' defined but not used [-Wunused-variable]
122 | static uint8_t block[OTP_NV_COUNTERS_WRITE_BLOCK_SIZE];
| ^~~~~
Also rename copy_data_into_block() argument 'block' to 'block_ptr' to
disambiguous it with the source file global variable 'block".
Signed-off-by: Ahmad EL JOUAID <ahmad.eljouaid@st.com>
Signed-off-by: Etienne Carriere <etienne.carriere@foss.st.com>
Change-Id: Ifd56ecf53536a559e8034571eb7e2988aee444d9
(cherry picked from commit b5bb3ae59230a5662e65363543da8b8efa4644de)
0 commit comments