summary refs log tree commit diff stats
path: root/tools
diff options
context:
space:
mode:
authorKaushal Modi <kaushal.modi@gmail.com>2020-05-15 17:37:24 -0400
committerGitHub <noreply@github.com>2020-05-15 23:37:24 +0200
commitbf0e1c696f6be96026d72838010ef8e63bd13238 (patch)
treea0d118be1d80e9e22099f9d8c5aa11cc4faa48b3 /tools
parentce0552c1008c8292c550e7a973c580f416c005ca (diff)
downloadNim-bf0e1c696f6be96026d72838010ef8e63bd13238.tar.gz
Remove the uses of {.procvar.} pragma (#14359)
This pragma did nothing.

Ref:
- https://github.com/nim-lang/Nim/issues/2172#issuecomment-383276469
- https://github.com/nim-lang/Nim/issues/12975
Diffstat (limited to 'tools')
-rw-r--r--tools/nimgrab.nim2
-rw-r--r--tools/urldownloader.nim2
2 files changed, 2 insertions, 2 deletions
diff --git a/tools/nimgrab.nim b/tools/nimgrab.nim
index 937a5dcd4..ee5eced1e 100644
--- a/tools/nimgrab.nim
+++ b/tools/nimgrab.nim
@@ -5,7 +5,7 @@ when defined(windows):
 
   proc syncDownload(url, file: string) =
     proc progress(status: DownloadStatus, progress: uint, total: uint,
-                  message: string) {.procvar, gcsafe.} =
+                  message: string) {.gcsafe.} =
       echo "Downloading " & url
       let t = total.BiggestInt
       if t != 0:
diff --git a/tools/urldownloader.nim b/tools/urldownloader.nim
index b29a6c138..73e4034c9 100644
--- a/tools/urldownloader.nim
+++ b/tools/urldownloader.nim
@@ -418,7 +418,7 @@ proc downloadToFile*(szUrl: string, szFileName: string,
 
 when isMainModule:
   proc progress(status: DownloadStatus, progress: uint, progressMax: uint,
-                message: string) {.procvar,gcsafe.} =
+                message: string) {.gcsafe.} =
     const downset: set[DownloadStatus] = {statusBeginDownloading,
                                         statusDownloading, statusEndDownloading}
     if status in downset: