Less warnings in macros (#10799)

This commit is contained in:
Arne Döring 2019-03-11 19:21:39 +01:00 • committed by Andreas Rumpf
commit 35aab357e2
3 changed files with 34 additions and 24 deletions

View file

@ -540,10 +540,6 @@ proc markUsed(conf: ConfigRef; info: TLineInfo; s: PSym; usageSym: var PSym) =
when defined(nimsuggest):
suggestSym(conf, info, s, usageSym, false)
proc useSym*(conf: ConfigRef; sym: PSym; usageSym: var PSym): PNode =
result = newSymNode(sym)
markUsed(conf, result.info, sym, usageSym)
proc safeSemExpr*(c: PContext, n: PNode): PNode =
# use only for idetools support!
try: