Fix control flow reaches end of non-void function warning
This commit is contained in:
@@ -2494,6 +2494,8 @@ checkMaxBetweenExclusive(Node *n, int begin, int end,
|
|||||||
case Type_Node256:
|
case Type_Node256:
|
||||||
return checkMaxBetweenExclusiveImpl<true>(static_cast<Node256 *>(n), begin,
|
return checkMaxBetweenExclusiveImpl<true>(static_cast<Node256 *>(n), begin,
|
||||||
end, readVersion, tls);
|
end, readVersion, tls);
|
||||||
|
default: // GCOVR_EXCL_LINE
|
||||||
|
__builtin_unreachable(); // GCOVR_EXCL_LINE
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
__attribute__((target("default")))
|
__attribute__((target("default")))
|
||||||
@@ -2517,6 +2519,8 @@ bool checkMaxBetweenExclusive(Node *n, int begin, int end,
|
|||||||
case Type_Node256:
|
case Type_Node256:
|
||||||
return checkMaxBetweenExclusiveImpl<false>(static_cast<Node256 *>(n), begin,
|
return checkMaxBetweenExclusiveImpl<false>(static_cast<Node256 *>(n), begin,
|
||||||
end, readVersion, tls);
|
end, readVersion, tls);
|
||||||
|
default: // GCOVR_EXCL_LINE
|
||||||
|
__builtin_unreachable(); // GCOVR_EXCL_LINE
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user