Hello everyone,
Is there a way of turning a compiler warning into an error? The reasoning is that I am developing some code with custom memory management (using gc:none), and I would want my code not to compile when a GcMem warning is thrown by the compiler.
Thank you!
It's currently impossible, you need to use a wrapper script that searches for some pattern an exits with 1 if it encounters the warning.
For custom memory management I would now use --gc:arc and destructors, --gc:none is obsolete.
https://github.com/nim-lang/Nim/commit/9c46927fad6535cf7e172f5af5e93d179cec1020