mirror of
https://github.com/matrix-construct/construct
synced 2025-03-08 10:30:32 +01:00
configure: Apply -Wimplicit-fallthrough.
This commit is contained in:
parent
89e44ce8e9
commit
5005dea8a4
3 changed files with 4 additions and 1 deletions
|
@ -858,6 +858,7 @@ RB_MAYBE_CWARN([-Wnull-dereference], charybdis_cv_c_gcc_w_null_dereference)
|
|||
RB_MAYBE_CWARN([-Wplacement-new=2], charybdis_cv_c_gcc_w_placement_new)
|
||||
RB_MAYBE_CWARN([-Wundef], charybdis_cv_c_gcc_w_undef)
|
||||
RB_MAYBE_CWARN([-Wodr], charybdis_cv_c_gcc_w_odr)
|
||||
RB_MAYBE_CWARN([-Wimplicit-fallthrough], charybdis_cv_c_gcc_w_implicit_fallthrough)
|
||||
|
||||
RB_MAYBE_CWARN([-Werror=return-type], charybdis_cv_c_gcc_w_error_return_type)
|
||||
|
||||
|
|
|
@ -526,8 +526,9 @@ ircd::db::loglevel(const database &d)
|
|||
[[unlikely]]
|
||||
case rocksdb::NUM_INFO_LOG_LEVELS:
|
||||
assert(0);
|
||||
[[fallthrough]];
|
||||
|
||||
case rocksdb::HEADER_LEVEL:
|
||||
case rocksdb::HEADER_LEVEL: [[fallthrough]];
|
||||
case rocksdb::FATAL_LEVEL: return log::level::CRITICAL;
|
||||
case rocksdb::ERROR_LEVEL: return log::level::ERROR;
|
||||
case rocksdb::WARN_LEVEL: return log::level::WARNING;
|
||||
|
|
|
@ -2528,6 +2528,7 @@ noexcept try
|
|||
[[unlikely]]
|
||||
case X509_V_OK:
|
||||
assert(0);
|
||||
[[fallthrough]];
|
||||
|
||||
default:
|
||||
reject();
|
||||
|
|
Loading…
Add table
Reference in a new issue