summary refs log tree commit diff stats
path: root/compiler
diff options
context:
space:
mode:
authorAndreas Rumpf <rumpf_a@web.de>2018-12-09 09:51:35 +0100
committerGitHub <noreply@github.com>2018-12-09 09:51:35 +0100
commit8035f408f1323ba81c8db794ad58687bace78afa (patch)
treed22feeeea6cf31ba18ca5e39d44791768fa8e81c /compiler
parent7a66616d741106d4c18ce2e8f843a8b5d31f6025 (diff)
parente03fb08c24b33a6e25d61da93ae07bd08c9ae648 (diff)
downloadNim-8035f408f1323ba81c8db794ad58687bace78afa.tar.gz
Merge pull request #9898 from cooldome/enum_notused
Enum fields get hintXDeclaredButNotUsed hint even marked with used pragma
Diffstat (limited to 'compiler')
-rw-r--r--compiler/lookups.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/lookups.nim b/compiler/lookups.nim
index 2fb4e5241..db03ac2e0 100644
--- a/compiler/lookups.nim
+++ b/compiler/lookups.nim
@@ -169,7 +169,7 @@ proc ensureNoMissingOrUnusedSymbols(c: PContext; scope: PScope) =
             getSymRepr(c.config, s))
       inc missingImpls
     elif {sfUsed, sfExported} * s.flags == {}:
-      if s.kind notin {skForVar, skParam, skMethod, skUnknown, skGenericParam}:
+      if s.kind notin {skForVar, skParam, skMethod, skUnknown, skGenericParam, skEnumField}:
         # XXX: implicit type params are currently skTypes
         # maybe they can be made skGenericParam as well.
         if s.typ != nil and tfImplicitTypeParam notin s.typ.flags and