server : fix compile warning

This commit is contained in:
Georgi Gerganov 2024-02-24 15:24:22 +02:00
parent cd5b922f26
commit af1ba7ea88
No known key found for this signature in database
GPG key ID: 449E073F9DC10735

View file

@ -133,8 +133,7 @@ struct completion_token_output
std::string text_to_send;
};
static inline void server_log(const char *level, const char *function, int line,
const char *message, const nlohmann::ordered_json &extra)
static inline void server_log(const char *level, const char *function, int /*line*/, const char *message, const nlohmann::ordered_json &extra)
{
char buf[1024];
snprintf(buf, 1024, "%24s %4s: %-80s", function, level, message);