summary refs log tree commit diff stats
path: root/lib/core
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2015-02-25 21:14:21 +0100
committerAraq <rumpf_a@web.de>2015-02-25 21:14:21 +0100
commit975f33b01d65b68ac1fea5de23998864ca2b2b8f (patch)
treedf04d995a1f37195b692f0e325d32e50156c3e70 /lib/core
parentf2cdbc92eb2aead4b7ee4c8a9156e17edc2edd9c (diff)
downloadNim-975f33b01d65b68ac1fea5de23998864ca2b2b8f.tar.gz
disable deprecated warnings for macros module
Diffstat (limited to 'lib/core')
-rw-r--r--lib/core/macros.nim6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/core/macros.nim b/lib/core/macros.nim
index c6453aeaa..dbfb2ceb3 100644
--- a/lib/core/macros.nim
+++ b/lib/core/macros.nim
@@ -1,7 +1,7 @@
 #
 #
 #            Nim's Runtime Library
-#        (c) Copyright 2013 Andreas Rumpf
+#        (c) Copyright 2015 Andreas Rumpf
 #
 #    See the file "copying.txt", included in this
 #    distribution, for details about the copyright.
@@ -120,6 +120,8 @@ const
   nnkCallKinds* = {nnkCall, nnkInfix, nnkPrefix, nnkPostfix, nnkCommand,
                    nnkCallStrLit}
 
+{.push warning[deprecated]: off.}
+
 proc `[]`*(n: PNimrodNode, i: int): PNimrodNode {.magic: "NChild", noSideEffect.}
   ## get `n`'s `i`'th child.
 
@@ -808,3 +810,5 @@ when not defined(booting):
     macro payload: stmt {.gensym.} =
       result = parseStmt(e)
     payload()
+
+{.pop.}