I've been trying to silence one million different hints coming from system
(std) libraries, but I still cannot manage to see how...
Here's an example of what I mean (the list is practically endless, this is just
a sample - and the problem is that amidst all these, I cannot spot the warnings
and hints that are related to _my_ code):
../../.choosenim/toolchains/nim-#devel/lib/pure/asyncmacro.nim(203, 31)
Warning: 'handlerIter' is not GC-safe as it calls 'currentPath' [GcUnsafe2]
../../.choosenim/toolchains/nim-#devel/lib/pure/os.nim(2668, 17) Hint:
passing 'a' to a sink parameter introduces an implicit copy; if possible,
rearrange your program's control flow to prevent it [Performance]
../../.choosenim/toolchains/nim-#devel/lib/pure/parseopt.nim(354, 37) Hint:
passing 'p.cmds[p.idx + 1]' to a sink parameter introduces an implicit copy; if
possible, rearrange your program's control flow to prevent it [Performance]
../../.choosenim/toolchains/nim-#devel/lib/pure/parseopt.nim(365, 33) Hint:
passing 'p.cmds[p.idx]' to a sink parameter introduces an implicit copy; if
possible, rearrange your program's control flow to prevent it [Performance]
../../.choosenim/toolchains/nim-#devel/lib/pure/os.nim(2163, 27) Hint:
passing 'y' to a sink parameter introduces an implicit copy; if possible,
rearrange your program's control flow to prevent it [Performance]
../../.choosenim/toolchains/nim-#devel/lib/pure/os.nim(2171, 23) Hint:
passing 'y' to a sink parameter introduces an implicit copy; if possible,
rearrange your program's control flow to prevent it [Performance]
../../.choosenim/toolchains/nim-#devel/lib/pure/os.nim(2163, 27) Hint:
passing 'y' to a sink parameter introduces an implicit copy; if possible,
rearrange your program's control flow to prevent it [Performance]
../../.choosenim/toolchains/nim-#devel/lib/pure/os.nim(2171, 23) Hint:
passing 'y' to a sink parameter introduces an implicit copy; if possible,
rearrange your program's control flow to prevent it [Performance]
../../.choosenim/toolchains/nim-#devel/lib/pure/os.nim(2163, 27) Hint:
passing 'y' to a sink parameter introduces an implicit copy; if possible,
rearrange your program's control flow to prevent it [Performance]
../../.choosenim/toolchains/nim-#devel/lib/pure/os.nim(2171, 23) Hint:
passing 'y' to a sink parameter introduces an implicit copy; if possible,
rearrange your program's control flow to prevent it [Performance]
../../.choosenim/toolchains/nim-#devel/lib/pure/os.nim(2163, 27) Hint:
passing 'y' to a sink parameter introduces an implicit copy; if possible,
rearrange your program's control flow to prevent it [Performance]
../../.choosenim/toolchains/nim-#devel/lib/pure/os.nim(2171, 23) Hint:
passing 'y' to a sink parameter introduces an implicit copy; if possible,
rearrange your program's control flow to prevent it [Performance]
../../.choosenim/toolchains/nim-#devel/lib/pure/httpcore.nim(151, 23) Hint:
passing 'headers.table[toCaseInsensitive(headers, key)]' to a sink parameter
introduces an implicit copy; if possible, rearrange your program's control flow
to prevent it [Performance]
../../.choosenim/toolchains/nim-#devel/lib/pure/httpclient.nim(1074, 46)
Hint: passing 'resp.status' to a sink parameter introduces an implicit copy; if
possible, rearrange your program's control flow to prevent it [Performance]
../../.choosenim/toolchains/nim-#devel/lib/pure/collections/tables.nim(662,
23) Hint: passing 'tbl.data[h].key' to a sink parameter introduces an implicit
copy; if possible, rearrange your program's control flow to prevent it
[Performance]
../../.choosenim/toolchains/nim-#devel/lib/pure/collections/tables.nim(662,
38) Hint: passing 'tbl.data[h].val' to a sink parameter introduces an implicit
copy; if possible, rearrange your program's control flow to prevent it
[Performance]
../../.choosenim/toolchains/nim-#devel/lib/pure/osproc.nim(960, 26) Hint:
passing 'data.sysCommand' to a sink parameter introduces an implicit copy; if
possible, rearrange your program's control flow to prevent it [Performance]
../../.choosenim/toolchains/nim-#devel/lib/pure/httpclient.nim(1165, 46)
Hint: passing 'resp.status' to a sink parameter introduces an implicit copy; if
possible, rearrange your program's control flow to prevent it [Performance]
../../.choosenim/toolchains/nim-#devel/lib/pure/asyncdispatch.nim(1286, 39)
Hint: passing 'adata.readList' to a sink parameter introduces an implicit copy;
if possible, rearrange your program's control flow to prevent it [Performance]
../../.choosenim/toolchains/nim-#devel/lib/pure/httpcore.nim(217, 14) Hint:
passing 'current' to a sink parameter introduces an implicit copy; if possible,
rearrange your program's control flow to prevent it [Performance]
Run
Here's how I'm trying to solve it:
{.push hints:off.}
import (system libraries)
{.pop.}
Run
However, this seems to make no difference whatsoever and I keep getting the
exact same hints and warnings.
Nim Compiler Version 1.5.1 [MacOSX: amd64]
Compiled at 2020-10-16
Copyright (c) 2006-2020 by Andreas Rumpf
Run
And I'm compiling with:
--warning[UnusedImport]:off" --colors:off -d:PYTHONIC -d:release -d:danger
--panics:off --gc:arc --checks:off --overflowChecks:on -d:ssl
Run
Any ideas?