From d6d7d0f04357ff9ccb97e8b44b4eb55cf9355953 Mon Sep 17 00:00:00 2001 From: goerch Date: Fri, 29 Sep 2023 21:24:05 +0200 Subject: [PATCH] Fixes for more compiler warnings --- llama.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/llama.cpp b/llama.cpp index efbd82c05..8add6d165 100644 --- a/llama.cpp +++ b/llama.cpp @@ -4595,7 +4595,6 @@ private: std::vector bpe_encoded_words; std::string token = ""; - const char* raw_text_p = text.c_str(); // GPT2 system regex: 's|'t|'re|'ve|'m|'ll|'d| ?\p{L}+| ?\p{N}+| ?[^\s\p{L}\p{N}]+|\s+(?!\S)|\s+ bool collecting_numeric = false; bool collecting_letter = false; @@ -4609,7 +4608,7 @@ private: bpe_encoded_words.reserve(text.size()); auto cps = codepoints_from_utf8(text); - for (auto i = 0; i < cps.size(); ++i) + for (size_t i = 0; i < cps.size(); ++i) text_utf.emplace_back(codepoint_to_utf8(cps[i])); for (int i = 0; i < (int)text_utf.size(); i++) {