]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
libssh2: delete duplicate `break`
authorViktor Szakats <commit@vsz.me>
Wed, 23 Oct 2024 13:40:18 +0000 (15:40 +0200)
committerViktor Szakats <commit@vsz.me>
Wed, 23 Oct 2024 17:36:04 +0000 (19:36 +0200)
```
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

lib/vssh/libssh2.c

index e0b9487bef192301e9bca9ac9f9a51a4ddb7df8f..c41ae9f90ad85e8a106a68408d85841046acbb2a 100644 (file)
@@ -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 =