This is an automated email from the ASF dual-hosted git repository. bmahler pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/mesos.git
commit 2c9c8180fb342690110c918944de0fe7ed3f69c7 Author: Jason Zhou <[email protected]> AuthorDate: Mon Jun 10 18:53:36 2024 -0400 [cgroups2] Fix control reaches end of non-void function. This change moves the UNREACHABLE macro out of the switch case to fix the "control reaches end of non-void function" error in the lambda function for addDevice. Review: https://reviews.apache.org/r/75043/ --- src/linux/cgroups2.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/linux/cgroups2.cpp b/src/linux/cgroups2.cpp index 9e2ca2207..d1fc2638c 100644 --- a/src/linux/cgroups2.cpp +++ b/src/linux/cgroups2.cpp @@ -1186,8 +1186,9 @@ private: switch (selector.type) { case Entry::Selector::Type::BLOCK: return BPF_DEVCG_DEV_BLOCK; case Entry::Selector::Type::CHARACTER: return BPF_DEVCG_DEV_CHAR; - case Entry::Selector::Type::ALL: UNREACHABLE(); + case Entry::Selector::Type::ALL: break; } + UNREACHABLE(); }(); program.append({
