From 66e5b033c0db0f8c011b05e167274d70ba75c951 Mon Sep 17 00:00:00 2001 From: Andrew Noyes Date: Tue, 15 Oct 2024 17:27:36 -0700 Subject: [PATCH] Fix control flow reaches end of non-void function warning --- ConflictSet.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ConflictSet.cpp b/ConflictSet.cpp index 8e4a94f..e7e648e 100644 --- a/ConflictSet.cpp +++ b/ConflictSet.cpp @@ -2494,6 +2494,8 @@ checkMaxBetweenExclusive(Node *n, int begin, int end, case Type_Node256: return checkMaxBetweenExclusiveImpl(static_cast(n), begin, end, readVersion, tls); + default: // GCOVR_EXCL_LINE + __builtin_unreachable(); // GCOVR_EXCL_LINE } } __attribute__((target("default"))) @@ -2517,6 +2519,8 @@ bool checkMaxBetweenExclusive(Node *n, int begin, int end, case Type_Node256: return checkMaxBetweenExclusiveImpl(static_cast(n), begin, end, readVersion, tls); + default: // GCOVR_EXCL_LINE + __builtin_unreachable(); // GCOVR_EXCL_LINE } }