From 4d541ec43454809904fc4c3c0a7436410ad597d2 Mon Sep 17 00:00:00 2001 From: Jacek Sieka Date: Tue, 2 Jan 2024 17:05:02 +0100 Subject: [PATCH] symbol conflict workaround works around https://github.com/nim-lang/Nim/pull/23124 --- serialization.nim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/serialization.nim b/serialization.nim index 95d7b12..e8e7941 100644 --- a/serialization.nim +++ b/serialization.nim @@ -25,11 +25,11 @@ template encode*(Format: type, value: auto, params: varargs[untyped]): auto = # TODO Nim cannot make sense of this initialization by var param? proc readValue*(reader: var auto, T: type): T {.gcsafe, raises: [SerializationError, IOError].} = - {.warning[ProveInit]: off.} + {.warning[ProveInit]: false.} mixin readValue result = default(T) reader.readValue(result) - {.warning[ProveInit]: on.} + {.warning[ProveInit]: true.} template decode*(Format: distinct type, input: string,