NimScript: make the compiler shut up about effects it doesn't know about
This commit is contained in:
parent
6d654f866d
commit
833a9344fa
1 changed files with 5 additions and 0 deletions
|
|
@ -13,6 +13,9 @@
|
||||||
|
|
||||||
template builtin = discard
|
template builtin = discard
|
||||||
|
|
||||||
|
# We know the effects better than the compiler:
|
||||||
|
{.push hint[XDeclaredButNotUsed]: off.}
|
||||||
|
|
||||||
proc listDirs*(dir: string): seq[string] =
|
proc listDirs*(dir: string): seq[string] =
|
||||||
## Lists all the subdirectories (non-recursively) in the directory `dir`.
|
## Lists all the subdirectories (non-recursively) in the directory `dir`.
|
||||||
builtin
|
builtin
|
||||||
|
|
@ -269,3 +272,5 @@ proc requires*(deps: varargs[string]) =
|
||||||
## Nimble support: Call this to set the list of requirements of your Nimble
|
## Nimble support: Call this to set the list of requirements of your Nimble
|
||||||
## package.
|
## package.
|
||||||
for d in deps: requiresData.add(d)
|
for d in deps: requiresData.add(d)
|
||||||
|
|
||||||
|
{.pop.}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue