mirror of
https://github.com/curl/curl.git
synced 2026-08-26 17:43:31 +03:00
curl-compilers: enable -Wimplicit-fallthrough=4 for GCC
This enables level 4 instead of the default level 3, which of the currently used comments only allows /* FALLTHROUGH */ to silence the warning. Closes https://github.com/curl/curl/pull/2747
This commit is contained in:
parent
60776a0515
commit
15ed9f87e3
8 changed files with 12 additions and 10 deletions
|
|
@ -659,7 +659,7 @@ static CURLcode ssh_statemach_act(struct connectdata *conn, bool *block)
|
|||
libssh2_session_set_blocking(sshc->ssh_session, 0);
|
||||
|
||||
state(conn, SSH_S_STARTUP);
|
||||
/* fall-through */
|
||||
/* FALLTHROUGH */
|
||||
|
||||
case SSH_S_STARTUP:
|
||||
rc = libssh2_session_startup(sshc->ssh_session, (int)sock);
|
||||
|
|
@ -675,7 +675,7 @@ static CURLcode ssh_statemach_act(struct connectdata *conn, bool *block)
|
|||
|
||||
state(conn, SSH_HOSTKEY);
|
||||
|
||||
/* fall-through */
|
||||
/* FALLTHROUGH */
|
||||
case SSH_HOSTKEY:
|
||||
/*
|
||||
* Before we authenticate we should check the hostkey's fingerprint
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue