summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2015-01-26 18:48:33 +0100
committerAraq <rumpf_a@web.de>2015-01-27 01:33:49 +0100
commit217390d18192e87534e61b9d15c55d44b7e163f7 (patch)
treece6127797fca9b91b4032fd5102c14cb5c7e2b28
parentb2d18899515809c508d656efdd800a94c7118bd9 (diff)
downloadNim-217390d18192e87534e61b9d15c55d44b7e163f7.tar.gz
do not warn about unknown conditional symbols anymore
-rw-r--r--compiler/semexprs.nim4
1 files changed, 0 insertions, 4 deletions
diff --git a/compiler/semexprs.nim b/compiler/semexprs.nim
index 577dc465f..51e5d6859 100644
--- a/compiler/semexprs.nim
+++ b/compiler/semexprs.nim
@@ -1413,10 +1413,6 @@ proc semDefined(c: PContext, n: PNode, onlyCurrentScope: bool): PNode =
       localError(n.info, "obsolete usage of 'defined', use 'declared' instead")
     elif condsyms.isDefined(n.sons[1].ident):
       result.intVal = 1
-    elif not condsyms.isDeclared(n.sons[1].ident):
-      message(n.info, warnUser,
-        "undeclared conditional symbol; use --symbol to declare it: " &
-        n[1].ident.s)
   elif lookUpForDefined(c, n.sons[1], onlyCurrentScope) != nil: 
     result.intVal = 1
   result.info = n.info