From 7825512d18981b86d79fe525bf773d5c38f3ce2f Mon Sep 17 00:00:00 2001 From: Erik Ekman Date: Thu, 25 Nov 2021 11:10:59 +0100 Subject: [PATCH] cpu/riscv_common: Suppress cppcheck error cpu/riscv_common/thread_arch.c:188: error (comparePointers): Subtracting pointers that point to different objects --- cpu/riscv_common/thread_arch.c | 1 + 1 file changed, 1 insertion(+) diff --git a/cpu/riscv_common/thread_arch.c b/cpu/riscv_common/thread_arch.c index a9127a21ed..b1332c730d 100644 --- a/cpu/riscv_common/thread_arch.c +++ b/cpu/riscv_common/thread_arch.c @@ -185,6 +185,7 @@ void heap_stats(void) extern char _sheap; /* defined in linker script */ extern char _eheap; /* defined in linker script */ + /* cppcheck-suppress comparePointers */ long int heap_size = &_eheap - &_sheap; struct mallinfo minfo = mallinfo();