diff --git a/examples/server/server.cpp b/examples/server/server.cpp index 46a3d636a..908c648ea 100644 --- a/examples/server/server.cpp +++ b/examples/server/server.cpp @@ -54,7 +54,7 @@ size_t find_partial_stop_string(const std::string & stop, const std::string & te template static std::string tokens_to_str(llama_context * ctx, Iter begin, Iter end) { std::string ret; - for (; begin != end; (void)++begin) { + for (; begin != end; ++begin) { ret += llama_token_to_str(ctx, *begin); } return ret;