cpu/riscv_common: Suppress cppcheck error
cpu/riscv_common/thread_arch.c:188: error (comparePointers): Subtracting pointers that point to different objects
This commit is contained in:
parent
b5f96d2040
commit
7825512d18
@ -185,6 +185,7 @@ void heap_stats(void)
|
|||||||
extern char _sheap; /* defined in linker script */
|
extern char _sheap; /* defined in linker script */
|
||||||
extern char _eheap; /* defined in linker script */
|
extern char _eheap; /* defined in linker script */
|
||||||
|
|
||||||
|
/* cppcheck-suppress comparePointers */
|
||||||
long int heap_size = &_eheap - &_sheap;
|
long int heap_size = &_eheap - &_sheap;
|
||||||
struct mallinfo minfo = mallinfo();
|
struct mallinfo minfo = mallinfo();
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user