summary refs log tree commit diff stats
path: root/lib/system/nimscript.nim
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2015-09-08 10:17:42 +0200
committerAraq <rumpf_a@web.de>2015-09-08 10:22:14 +0200
commit833a9344fad91a0ccf827e7dedcb41aa3eb2665a (patch)
tree9df1ec2fcf6b5411c20da61288374a96d68dc365 /lib/system/nimscript.nim
parent6d654f866de6b76e5e3ce176fe01497e864fbd11 (diff)
downloadNim-833a9344fad91a0ccf827e7dedcb41aa3eb2665a.tar.gz
NimScript: make the compiler shut up about effects it doesn't know about
Diffstat (limited to 'lib/system/nimscript.nim')
-rw-r--r--lib/system/nimscript.nim5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/system/nimscript.nim b/lib/system/nimscript.nim
index 878d72365..4841749a9 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.}