summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--lib/system/gc.nim2
-rw-r--r--lib/system/profiler.nim2
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/system/gc.nim b/lib/system/gc.nim
index 58587cf7f..844f28690 100644
--- a/lib/system/gc.nim
+++ b/lib/system/gc.nim
@@ -33,7 +33,7 @@ const
 when withRealTime and not declared(getTicks):
   include "system/timers"
 when defined(memProfiler):
-  proc nimProfile(requestedSize: int)
+  proc nimProfile(requestedSize: int) {.benign.}
 
 const
   rcIncrement = 0b1000 # so that lowest 3 bits are not touched
diff --git a/lib/system/profiler.nim b/lib/system/profiler.nim
index 96ab6abc7..6d6863caa 100644
--- a/lib/system/profiler.nim
+++ b/lib/system/profiler.nim
@@ -51,7 +51,7 @@ proc captureStackTrace(f: PFrame, st: var TStackTrace) =
 
 when defined(memProfiler):
   type
-    TMemProfilerHook* = proc (st: TStackTrace, requestedSize: int) {.nimcall.}
+    TMemProfilerHook* = proc (st: TStackTrace, requestedSize: int) {.nimcall, benign.}
   var
     profilerHook*: TMemProfilerHook
       ## set this variable to provide a procedure that implements a profiler in