Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Many compiler warnings still after 3 years #1

Open
StefanSalewski opened this issue Jan 9, 2021 · 0 comments
Open

Many compiler warnings still after 3 years #1

StefanSalewski opened this issue Jan 9, 2021 · 0 comments

Comments

@StefanSalewski
Copy link
Owner

Directly compiling the module give a lot of warnings:

salewski@nuc /tmp/hhh $ nim c --gc:arc rtree.nim 
Hint: used config file '/home/salewski/Nim/config/nim.cfg' [Conf]
Hint: used config file '/home/salewski/Nim/config/config.nims' [Conf]
...................
/tmp/hhh/rtree.nim(1078, 8) template/generic instantiation of `insert` from here
/tmp/hhh/rtree.nim(554, 11) template/generic instantiation of `rsinsert` from here
/tmp/hhh/rtree.nim(540, 15) template/generic instantiation of `adjustTree` from here
/tmp/hhh/rtree.nim(459, 33) template/generic instantiation of `overflowTreatment` from here
/tmp/hhh/rtree.nim(520, 13) template/generic instantiation of `reInsert` from here
/tmp/hhh/rtree.nim(501, 17) template/generic instantiation of `center` from here
/tmp/hhh/rtree.nim(83, 7) Warning: Special variable 'result' is shadowed. [ResultShadowed]
/tmp/hhh/rtree.nim(1078, 8) template/generic instantiation of `insert` from here
/tmp/hhh/rtree.nim(554, 11) template/generic instantiation of `rsinsert` from here
/tmp/hhh/rtree.nim(540, 15) template/generic instantiation of `adjustTree` from here
/tmp/hhh/rtree.nim(459, 33) template/generic instantiation of `overflowTreatment` from here
/tmp/hhh/rtree.nim(520, 13) template/generic instantiation of `reInsert` from here
/tmp/hhh/rtree.nim(502, 56) template/generic instantiation of `distance` from here
/tmp/hhh/rtree.nim(94, 7) Warning: Special variable 'result' is shadowed. [ResultShadowed]
/tmp/hhh/rtree.nim(460, 16) Hint: condition is always true: 't of RTree[4, 2, RT, LT]' [CondTrue]
/tmp/hhh/rtree.nim(1208, 6) template/generic instantiation of `insert` from here
/tmp/hhh/rtree.nim(554, 11) template/generic instantiation of `rsinsert` from here
/tmp/hhh/rtree.nim(540, 15) template/generic instantiation of `adjustTree` from here
/tmp/hhh/rtree.nim(459, 33) template/generic instantiation of `overflowTreatment` from here
/tmp/hhh/rtree.nim(520, 13) template/generic instantiation of `reInsert` from here
/tmp/hhh/rtree.nim(501, 17) template/generic instantiation of `center` from here
/tmp/hhh/rtree.nim(83, 7) Warning: Special variable 'result' is shadowed. [ResultShadowed]
/tmp/hhh/rtree.nim(1208, 6) template/generic instantiation of `insert` from here
/tmp/hhh/rtree.nim(554, 11) template/generic instantiation of `rsinsert` from here
/tmp/hhh/rtree.nim(540, 15) template/generic instantiation of `adjustTree` from here
/tmp/hhh/rtree.nim(459, 33) template/generic instantiation of `overflowTreatment` from here
/tmp/hhh/rtree.nim(520, 13) template/generic instantiation of `reInsert` from here
/tmp/hhh/rtree.nim(502, 56) template/generic instantiation of `distance` from here
/tmp/hhh/rtree.nim(94, 7) Warning: Special variable 'result' is shadowed. [ResultShadowed]
/tmp/hhh/rtree.nim(1208, 6) template/generic instantiation of `insert` from here
/tmp/hhh/rtree.nim(554, 11) template/generic instantiation of `rsinsert` from here
/tmp/hhh/rtree.nim(540, 15) template/generic instantiation of `adjustTree` from here
/tmp/hhh/rtree.nim(459, 33) template/generic instantiation of `overflowTreatment` from here
/tmp/hhh/rtree.nim(523, 24) template/generic instantiation of `rstarSplit` from here
/tmp/hhh/rtree.nim(283, 24) Warning: Deprecated since v1.4; there should not be `high(value)`. Use `high(type)`.; high is deprecated [Deprecated]
/tmp/hhh/rtree.nim(1208, 6) template/generic instantiation of `insert` from here
/tmp/hhh/rtree.nim(554, 11) template/generic instantiation of `rsinsert` from here
/tmp/hhh/rtree.nim(540, 15) template/generic instantiation of `adjustTree` from here
/tmp/hhh/rtree.nim(459, 33) template/generic instantiation of `overflowTreatment` from here
/tmp/hhh/rtree.nim(523, 24) template/generic instantiation of `rstarSplit` from here
/tmp/hhh/rtree.nim(310, 24) Warning: Deprecated since v1.4; there should not be `high(value)`. Use `high(type)`.; high is deprecated [Deprecated]
/tmp/hhh/rtree.nim(460, 16) Hint: condition is always true: 't of RTree[4, 2, RT, LT]' [CondTrue]
/tmp/hhh/rtree.nim(1208, 6) template/generic instantiation of `insert` from here
/tmp/hhh/rtree.nim(554, 11) template/generic instantiation of `rsinsert` from here
/tmp/hhh/rtree.nim(544, 31) template/generic instantiation of `overflowTreatment` from here
/tmp/hhh/rtree.nim(523, 24) template/generic instantiation of `rstarSplit` from here
/tmp/hhh/rtree.nim(283, 24) Warning: Deprecated since v1.4; there should not be `high(value)`. Use `high(type)`.; high is deprecated [Deprecated]
/tmp/hhh/rtree.nim(1208, 6) template/generic instantiation of `insert` from here
/tmp/hhh/rtree.nim(554, 11) template/generic instantiation of `rsinsert` from here
/tmp/hhh/rtree.nim(544, 31) template/generic instantiation of `overflowTreatment` from here
/tmp/hhh/rtree.nim(523, 24) template/generic instantiation of `rstarSplit` from here
/tmp/hhh/rtree.nim(310, 24) Warning: Deprecated since v1.4; there should not be `high(value)`. Use `high(type)`.; high is deprecated [Deprecated]
/tmp/hhh/rtree.nim(615, 10) Hint: condition is always true: 't of RTree[4, 2, RT, LT]' [CondTrue]
/tmp/hhh/rtree.nim(1301, 9) Hint: 'tgs' is declared but not used [XDeclaredButNotUsed]
/tmp/hhh/rtree.nim(1227, 8) Hint: 'ignore' is declared but not used [XDeclaredButNotUsed]
CC: stdlib_assertions.nim
CC: stdlib_dollars.nim
CC: stdlib_formatfloat.nim
CC: stdlib_io.nim
CC: stdlib_system.nim
CC: stdlib_algorithm.nim
CC: stdlib_math.nim
CC: stdlib_heapqueue.nim
CC: stdlib_strutils.nim
CC: stdlib_times.nim
CC: stdlib_random.nim
CC: rtree.nim
Hint:  [Link]
Hint: 40503 lines; 8.774s; 117.922MiB peakmem; Debug build; proj: /tmp/hhh/rtree.nim; out: /tmp/hhh/rtree [SuccessX]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant