From: Daniel Stenberg Date: Fri, 26 Jan 2024 09:46:17 +0000 (+0100) Subject: krb5: add prototype to silence clang warnings on mvsnprintf() X-Git-Tag: curl-8_6_0~17 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=aee4ebe59161d0a5281743f96e7738ad97fe1cd4;p=thirdparty%2Fcurl.git 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 --- 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;