From: Viktor Szakats Date: Wed, 23 Oct 2024 13:40:18 +0000 (+0200) Subject: libssh2: delete duplicate `break` X-Git-Tag: curl-8_11_0~83 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7c023c3f6e2c454fbac7277d8dc038854c192d72;p=thirdparty%2Fcurl.git libssh2: delete duplicate `break` ``` lib/vssh/libssh2.c:2495:7: warning: 'break' will never be executed [-Wunreachable-code-break] break; ^~~~~ ``` CI did not catch it due to llvm skipping this check for all #included files. It's designed this way to avoid performance issues and false positive when checking headers: https://github.com/llvm/llvm-project/issues/71046 Closes #15384 --- diff --git a/lib/vssh/libssh2.c b/lib/vssh/libssh2.c index e0b9487bef..c41ae9f90a 100644 --- a/lib/vssh/libssh2.c +++ b/lib/vssh/libssh2.c @@ -2492,7 +2492,6 @@ static CURLcode ssh_statemachine(struct Curl_easy *data, bool *block) state(data, SSH_SFTP_CLOSE); } break; - break; case SSH_SFTP_READDIR_LINK: rc =