0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-05-18 10:53:48 +02:00

configure: Apply -Wimplicit-fallthrough.

This commit is contained in:
Jason Volk 2023-02-02 10:56:43 -08:00
parent 89e44ce8e9
commit 5005dea8a4
3 changed files with 4 additions and 1 deletions

View file

@ -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)

View file

@ -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;

View file

@ -2528,6 +2528,7 @@ noexcept try
[[unlikely]]
case X509_V_OK:
assert(0);
[[fallthrough]];
default:
reject();