diff options
author | Andreas Rumpf <rumpf_a@web.de> | 2018-12-09 09:51:35 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-12-09 09:51:35 +0100 |
commit | 8035f408f1323ba81c8db794ad58687bace78afa (patch) | |
tree | d22feeeea6cf31ba18ca5e39d44791768fa8e81c /compiler | |
parent | 7a66616d741106d4c18ce2e8f843a8b5d31f6025 (diff) | |
parent | e03fb08c24b33a6e25d61da93ae07bd08c9ae648 (diff) | |
download | Nim-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.nim | 2 |
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 |