summary refs log tree commit diff stats
path: root/lib
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2015-04-22 13:57:20 +0200
committerAraq <rumpf_a@web.de>2015-04-22 13:57:20 +0200
commitd631958124e08723738886946d6fe82f0a6ade2d (patch)
treed0301335ab1240ca30f1e01af377e7d07ea23777 /lib
parent8ab3074c80c6509b22ccdf47cd2abfad7436a0f8 (diff)
downloadNim-d631958124e08723738886946d6fe82f0a6ade2d.tar.gz
news.txt updates; fixes bootstrapping
Diffstat (limited to 'lib')
-rw-r--r--lib/system.nim5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/system.nim b/lib/system.nim
index 3e8c17324..1805dd813 100644
--- a/lib/system.nim
+++ b/lib/system.nim
@@ -3266,9 +3266,10 @@ template `..<`*(a, b: expr): expr =
   ## '..' and '<' is required.
   a .. <b
 
-proc xlen*(x: string): int {.magic: "XLenStr", noSideEffect.}
-proc xlen*[T](x: seq[T]): int {.magic: "XLenSeq", noSideEffect.}
+proc xlen*(x: string): int {.magic: "XLenStr", noSideEffect.} = discard
+proc xlen*[T](x: seq[T]): int {.magic: "XLenSeq", noSideEffect.} =
   ## returns the length of a sequence or a string without testing for 'nil'.
   ## This is an optimization that rarely makes sense.
+  discard
 
 {.pop.} #{.push warning[GcMem]: off.}