summary refs log tree commit diff stats
path: root/lib
diff options
context:
space:
mode:
authorAndreas Rumpf <rumpf_a@web.de>2015-01-27 14:29:20 +0100
committerAndreas Rumpf <rumpf_a@web.de>2015-01-27 14:29:20 +0100
commit52c456fee8f9e9f9b3bcac6382f3842eae3e8b09 (patch)
tree5bfc9bbfb02c961aa8c2252bdef0a4f201f1e94f /lib
parent792a8dc70271460e5992b1a67c2e12c2cc456f85 (diff)
parentdfdd84f2c9b9a2f1e2e4c649f971a6da22d1bd8e (diff)
downloadNim-52c456fee8f9e9f9b3bcac6382f3842eae3e8b09.tar.gz
Merge pull request #2005 from def-/fix-estp
Make ESTP compile
Diffstat (limited to 'lib')
-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