Fix warnings

This commit is contained in:
Nyall Dawson 2025-09-25 11:54:28 +10:00
parent bc9689d09f
commit 127ff85935
3 changed files with 3 additions and 2 deletions

View File

@ -47,7 +47,7 @@ static __thread struct
int code;
char message[LAST_ERROR_BUFFER_SIZE];
char method[LAST_ERROR_BUFFER_SIZE];
} last_error = {0};
} last_error = {0, "", ""};
#else
static std::stack<Error> errors;
#endif

View File

@ -548,7 +548,7 @@ bool SpatialIndex::MVRTree::MVRTree::isIndexValid()
//std::cerr << "Total accessible nodes: " << visitedEntries.size() << std::endl;
//std::cerr << "Degenerate nodes: " << degenerateEntries << std::endl;
(void)degenerateEntries;
return ret;
}

View File

@ -45,6 +45,7 @@ namespace Tools
while (! m_pool.empty())
{
SpatialIndex::MVRTree::Node* x = m_pool.top(); m_pool.pop();
(void)x;
}
}