From ea965bbe00c4ebc6d4d23bb3dee501a7474c0014 Mon Sep 17 00:00:00 2001 From: jangko Date: Sat, 18 Sep 2021 15:05:10 +0700 Subject: [PATCH] silence spurious warning: 'ReaderType' is declared but not used --- json_serialization/reader.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/json_serialization/reader.nim b/json_serialization/reader.nim index f327526..a7cf6e9 100644 --- a/json_serialization/reader.nim +++ b/json_serialization/reader.nim @@ -396,7 +396,7 @@ template isCharArray(v: auto): bool = false proc readValue*[T](r: var JsonReader, value: var T) {.raises: [UnexpectedValueError, SerializationError, IOError, Defect].} = mixin readValue - type ReaderType = type r + type ReaderType {.used.} = type r let tok {.used.} = r.lexer.tok