From 833a9344fad91a0ccf827e7dedcb41aa3eb2665a Mon Sep 17 00:00:00 2001 From: Araq Date: Tue, 8 Sep 2015 10:17:42 +0200 Subject: [PATCH] NimScript: make the compiler shut up about effects it doesn't know about --- lib/system/nimscript.nim | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/system/nimscript.nim b/lib/system/nimscript.nim index 878d72365e..4841749a94 100644 --- a/lib/system/nimscript.nim +++ b/lib/system/nimscript.nim @@ -13,6 +13,9 @@ template builtin = discard +# We know the effects better than the compiler: +{.push hint[XDeclaredButNotUsed]: off.} + proc listDirs*(dir: string): seq[string] = ## Lists all the subdirectories (non-recursively) in the directory `dir`. builtin @@ -269,3 +272,5 @@ proc requires*(deps: varargs[string]) = ## Nimble support: Call this to set the list of requirements of your Nimble ## package. for d in deps: requiresData.add(d) + +{.pop.}