diff --git a/src/lib/data/fulltextsearch/SuffixArray.cpp b/src/lib/data/fulltextsearch/SuffixArray.cpp index c2514f01..34b3badd 100644 --- a/src/lib/data/fulltextsearch/SuffixArray.cpp +++ b/src/lib/data/fulltextsearch/SuffixArray.cpp @@ -26,7 +26,7 @@ void SuffixArray::printArray() const { std::cout << "Suffix Array : \n"; printArr(m_array); - for (int i = 0; i < m_array.size(); i++) + for (size_t i = 0; i < m_array.size(); i++) { std::wstring suffix = m_text.substr(m_array[i]); std::wcout << i << ": \"" << suffix << "\"" << std::endl; @@ -37,7 +37,7 @@ void SuffixArray::printLCP() const { std::cout << "\nLCP Array : \n"; printArr(m_lcp); - for (int i = 0; i < m_array.size(); i++) + for (size_t i = 0; i < m_array.size(); i++) { std::wstring prefix = m_text.substr(m_array[i], m_lcp[i]); std::wcout << i << ": \"" << prefix << "\"" << std::endl; diff --git a/src/lib/utility/LowMemoryStringMap.h b/src/lib/utility/LowMemoryStringMap.h index cddfd180..d4286712 100644 --- a/src/lib/utility/LowMemoryStringMap.h +++ b/src/lib/utility/LowMemoryStringMap.h @@ -396,7 +396,7 @@ private: idx++; std::unique_ptr child = std::move(it->second); - const StringT& childStr = child->getString(); + StringT childStr = child->getString(); auto p = std::mismatch(childStr.begin(), childStr.end(), str.begin() + idx); @@ -471,7 +471,7 @@ private: void print(StreamT& os, size_t depth) const override { - const StringT& myStr = this->getString(); + StringT myStr = this->getString(); if (myStr.size()) { os << StringT(depth, ' ') << myStr << std::endl; @@ -491,7 +491,7 @@ private: std::unique_ptr split(std::unique_ptr node, size_t idx) const { - const StringT& str = node->getString(); + StringT str = node->getString(); std::unique_ptr frontBranch = createBranch(str.substr(0, idx)); CharT c(0); diff --git a/src/lib_cxx/utility/codeblocks/CodeblocksCompilerVarType.cpp b/src/lib_cxx/utility/codeblocks/CodeblocksCompilerVarType.cpp index c841bc03..9ec30a08 100644 --- a/src/lib_cxx/utility/codeblocks/CodeblocksCompilerVarType.cpp +++ b/src/lib_cxx/utility/codeblocks/CodeblocksCompilerVarType.cpp @@ -12,6 +12,8 @@ namespace Codeblocks return "C"; case COMPILER_VAR_WINDRES: return "WINDRES"; + default: + break; } return "unknown"; }