From aee4ebe59161d0a5281743f96e7738ad97fe1cd4 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Fri, 26 Jan 2024 10:46:17 +0100 Subject: [PATCH] krb5: add prototype to silence clang warnings on mvsnprintf() "error: format string is not a string literal" Follow-up to 09230127589eccc7 which made the warning appear Assisted-by: Viktor Szakats Closes #12803 --- lib/krb5.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/krb5.c b/lib/krb5.c index b334ae2f40..4db19fb27f 100644 --- a/lib/krb5.c +++ b/lib/krb5.c @@ -434,6 +434,9 @@ static char level_to_char(int level) /* Send an FTP command defined by |message| and the optional arguments. The function returns the ftp_code. If an error occurs, -1 is returned. */ +static int ftp_send_command(struct Curl_easy *data, const char *message, ...) + CURL_PRINTF(2, 3); + static int ftp_send_command(struct Curl_easy *data, const char *message, ...) { int ftp_code; -- 2.47.3