I know I've brought up the subject before but I simply have to find a solution - since with so many different hints popping up from system libraries, I'm unable to figure out what is my fault and what isn't.
For example, I'm seeing this hint:
/Users/drkameleon/.choosenim/toolchains/nim-1.4.2/lib/pure/os.nim(2172, 23) Hint: passing 'y' to a sink parameter introduces an implicit copy; if possible, rearrange your program's control flow to prevent it [Performance]
So, that's fine. Since I cannot enable/disable hints when importing os, I go to L2172 of .../os.nim to figure which is the proc that triggers it. And it's walkDir. Since I'm using it in a few places, then I think "that's it."...
So I go and do that:
{.push hints:off.}
# some call to walkDir
{.push hints:on.}
And... while I'm mentally prepared to see the hints go away, they're all still there.
What is going on? Is there any way to eliminate them at last, while keeping the ones that are relevant to my code?
(Also, is it possible to see the whole stack of what-calls-what and how I end up with this warning? - I guess it might be another function, somewhere else, that's calling walkDir, not even in my own code, but how should I figure this out in close to 20K lines of code?!)
For XDeclaredButNotUsed we have the {.used.} pragma but nowadays we are spammed with:
that are also wrong on the compiler side.
Thanks for being clear.
I guess I'll have to come to terms with it and focus on my code...
Thanks again! :)