cpu/esp_common: suppress cppcheck false positives

This commit is contained in:
Martine Lenders 2021-11-03 21:53:34 +01:00
parent e27fd3018e
commit 098eeb1a2c
No known key found for this signature in database
GPG Key ID: 2134D77A5336DD80

View File

@ -360,6 +360,8 @@ void thread_isr_stack_init(void)
int thread_isr_stack_usage(void)
{
/* cppcheck-suppress comparePointers
* (reason: comes from ESP-SDK, so should be valid) */
return &port_IntStackTop - &port_IntStack -
thread_measure_stack_free((char*)&port_IntStack);
}
@ -379,6 +381,8 @@ void *thread_isr_stack_start(void)
void thread_isr_stack_print(void)
{
printf("Printing current ISR\n");
/* cppcheck-suppress comparePointers
* (reason: comes from ESP-SDK, so should be valid) */
esp_hexdump(&port_IntStack, &port_IntStackTop-&port_IntStack, 'w', 8);
}