1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

cpu/arm7_common: suppress false positives of cppcheck

This commit is contained in:
Marian Buschsieweke 2021-11-16 16:06:46 +01:00
parent 69dadf61e9
commit fcba75d86d
No known key found for this signature in database
GPG Key ID: CB8E3238CE715A94

View File

@ -64,6 +64,9 @@ static inline void _init_data(void)
dst = &__stack_usr_start;
end = &__stack_end;
/* cppcheck-suppress comparePointers
* (addresses exported as symbols via linker script and look unrelated
* to cppcheck) */
while (dst < end) {
*(dst++) = STACK_CANARY_WORD;
}
@ -74,6 +77,9 @@ static inline void _init_data(void)
dst = &_srelocate;
end = &_erelocate;
/* cppcheck-suppress comparePointers
* (addresses exported as symbols via linker script and look unrelated
* to cppcheck) */
while (dst < end) {
*dst++ = *src++;
}
@ -82,6 +88,9 @@ static inline void _init_data(void)
dst = &_szero;
end = &_ezero;
/* cppcheck-suppress comparePointers
* (addresses exported as symbols via linker script and look unrelated
* to cppcheck) */
while (dst < end) {
*dst++ = 0;
}
@ -97,6 +106,9 @@ static inline void _init_data(void)
dst = _sbackup_data;
end = _ebackup_data;
/* cppcheck-suppress comparePointers
* (addresses exported as symbols via linker script and look unrelated
* to cppcheck) */
while (dst < end) {
*dst++ = *src++;
}
@ -105,6 +117,9 @@ static inline void _init_data(void)
dst = _sbackup_bss;
end = _ebackup_bss;
/* cppcheck-suppress comparePointers
* (addresses exported as symbols via linker script and look unrelated
* to cppcheck) */
while (dst < end) {
*dst++ = 0;
}