mirror of
https://github.com/zedeus/nitter.git
synced 2024-12-13 03:26:30 +00:00
Fix compilation error on older Nim versions
This commit is contained in:
parent
5b185c79de
commit
92ace2bf70
1 changed files with 6 additions and 1 deletions
|
@ -7,4 +7,9 @@
|
||||||
# disable annoying warnings
|
# disable annoying warnings
|
||||||
warning("GcUnsafe2", off)
|
warning("GcUnsafe2", off)
|
||||||
warning("ObservableStores", off)
|
warning("ObservableStores", off)
|
||||||
|
|
||||||
|
const
|
||||||
|
nimVersion = (major: NimMajor, minor: NimMinor, patch: NimPatch)
|
||||||
|
|
||||||
|
when nimVersion >= (1, 6, 0):
|
||||||
warning("HoleEnumConv", off)
|
warning("HoleEnumConv", off)
|
||||||
|
|
Loading…
Reference in a new issue