Closed cdunn2001 closed 4 years ago
I wanted to add this to nim.cfg
, but these are unknown to older nim compilers.
--warning[UnusedImport]:off
--warning[InheritFromException]:off
--warning[Deprecated]:off
You can use something like
@if nimHasWarningUnusedImport:
--warning[UnusedImport]:off
@end
But I prefer to fix c2nim so that it compiles without warnings.
But I prefer to fix c2nim so that it compiles without warnings.
Then merging this would be a good start.
It's difficult to fix all the warnings because the current tests require c2nim to compile for 0.9.14, 0.20, and latest. It might be better to tag a warning-free c2nim release for each nim release.
Fixed not all, but some warnings.