quadtree.c:370: warning: unused variable ‘ret’
Trivial remove
quadtree.c: In function ‘quadtree_find_nearest’:
quadtree.c:369: warning: ‘distance’ may be used uninitialized in this function
This variable will not be used uninitialized, but the compiler warning
is trivial to fix with simply initializing the variable with zero.
Signed-off-by: Timo Kokkonen <kaapeli@itanic.dy.fi>
{
struct vector tmp;
struct quadtree *nearest, *node;
- double distance, dist;
- int ret, i, directions;
+ double distance = 0, dist;
+ int i, directions;
if (!is_within(pos, corner)) {
if (debug) {