Fix post-return compilation warning
This commit is contained in:
parent
ab3bd12c11
commit
53981fd70a
|
@ -1171,6 +1171,7 @@ proc fromPreserve*[T, E](v: var T; pr: Preserve[E]): bool {.gcsafe.} =
|
||||||
result = fromPreserveHook(v, pr)
|
result = fromPreserveHook(v, pr)
|
||||||
# a previous branch determined that the hook does not compile but
|
# a previous branch determined that the hook does not compile but
|
||||||
# calling it here explicitly produces a reasonable compiler error
|
# calling it here explicitly produces a reasonable compiler error
|
||||||
|
when defined(tracePreserves):
|
||||||
if not result:
|
if not result:
|
||||||
trace T, " !- ", pr
|
trace T, " !- ", pr
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in New Issue