mirror of
https://github.com/codership/wsrep-lib.git
synced 2025-07-03 16:22:35 +03:00
Introduced macro to silence implicit-fallthrough warning
The fallthrough comment is not enough to silence the warning with -Wimplicit-fallthrough=5. This commit also fixes submodule handling in github actions.
This commit is contained in:
@ -1086,7 +1086,7 @@ void wsrep::server_state::on_sync()
|
||||
break;
|
||||
case s_connected:
|
||||
state(lock, s_joiner);
|
||||
// fall through
|
||||
WSREP_FALLTHROUGH;
|
||||
case s_joiner:
|
||||
state(lock, s_initializing);
|
||||
break;
|
||||
@ -1096,7 +1096,7 @@ void wsrep::server_state::on_sync()
|
||||
break;
|
||||
case s_initialized:
|
||||
state(lock, s_joined);
|
||||
// fall through
|
||||
WSREP_FALLTHROUGH;
|
||||
default:
|
||||
/* State */
|
||||
state(lock, s_synced);
|
||||
|
Reference in New Issue
Block a user