summary refs log tree commit diff stats
path: root/lib
diff options
context:
space:
mode:
authorDanil Yarantsev <tiberiumk12@gmail.com>2020-06-01 12:56:07 +0300
committerGitHub <noreply@github.com>2020-06-01 11:56:07 +0200
commit5d0cf883c15b6bd348ecfe7865cb85ca05e341de (patch)
tree490187971602e8ebdf3fcea92dfa3c8ceb965b3b /lib
parent004b0759c5743f4b50766a14b0a47477b72bbac9 (diff)
downloadNim-5d0cf883c15b6bd348ecfe7865cb85ca05e341de.tar.gz
Disable unused warnings for error await template too (#14531)
Diffstat (limited to 'lib')
-rw-r--r--lib/pure/asyncmacro.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/pure/asyncmacro.nim b/lib/pure/asyncmacro.nim
index 77db80bc6..cbed6372c 100644
--- a/lib/pure/asyncmacro.nim
+++ b/lib/pure/asyncmacro.nim
@@ -263,7 +263,7 @@ proc asyncSingleProc(prc: NimNode): NimNode {.compileTime.} =
   # based on the yglukhov's patch to chronos: https://github.com/status-im/nim-chronos/pull/47
   # however here the overloads are placed inside each expanded async
   var awaitDefinition = quote:
-    template await(f: typed): untyped =
+    template await(f: typed): untyped {.used.} =
       static:
         error "await expects Future[T], got " & $typeof(f)