summary refs log tree commit diff stats
path: root/config
diff options
context:
space:
mode:
authormetagn <metagngn@gmail.com>2022-10-01 14:30:23 +0300
committerGitHub <noreply@github.com>2022-10-01 13:30:23 +0200
commitcfff454cf9852be9df2020c3a2d192caaa2f418a (patch)
treefa22a0b1a8cb255b2ac239c6f417d5487e11a0c6 /config
parent24b81e9df6d871bd036d5e38efe631489999a4b7 (diff)
downloadNim-cfff454cf9852be9df2020c3a2d192caaa2f418a.tar.gz
closed ambiguous enum defaults to first overload (#20457)
* closed ambiguous enum defaults to first overload

* add warning

* turn to hint

* work around config
Diffstat (limited to 'config')
-rw-r--r--config/nim.cfg4
1 files changed, 4 insertions, 0 deletions
diff --git a/config/nim.cfg b/config/nim.cfg
index 55b7a41c1..9f50a1f84 100644
--- a/config/nim.cfg
+++ b/config/nim.cfg
@@ -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