closed ambiguous enum defaults to first overload (#20457)

* closed ambiguous enum defaults to first overload

* add warning

* turn to hint

* work around config
This commit is contained in:
metagn 2022-10-01 14:30:23 +03:00 • committed by GitHub
commit cfff454cf9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 37 additions and 8 deletions

View file

@ -15,6 +15,10 @@ cc = gcc
--parallel_build: "0" # 0 to auto-detect number of processors
hint[LineTooLong]=off
@if nimHasAmbiguousEnumHint:
# not needed if hint is a style check
hint[AmbiguousEnum]=off
@end
#hint[XDeclaredButNotUsed]=off
threads:on