Fix control flow reaches end of non-void function warning
This commit is contained in:
1 parent
1d705cd4b7
commit
66e5b033c0
1 file changed
+4
@@ -2494,6 +2494,8 @@ checkMaxBetweenExclusive(Node *n, int begin, int end,
|
||||
case Type_Node256:
|
||||
return checkMaxBetweenExclusiveImpl<true>(static_cast<Node256 *>(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<false>(static_cast<Node256 *>(n), begin,
|
||||
end, readVersion, tls);
|
||||
default: // GCOVR_EXCL_LINE
|
||||
__builtin_unreachable(); // GCOVR_EXCL_LINE
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user