From dfdd84f2c9b9a2f1e2e4c649f971a6da22d1bd8e Mon Sep 17 00:00:00 2001 From: def Date: Fri, 23 Jan 2015 23:18:20 +0100 Subject: Make ESTP compile --- lib/system/gc.nim | 2 +- lib/system/profiler.nim | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'lib') 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 -- cgit 1.4.1-2-gfad0