Make always_inline function inline

Try to fix warning in jenkins
This commit is contained in:
2024-06-28 22:42:01 -07:00
parent 587874841f
commit 4958a4cced

View File

@@ -1850,9 +1850,9 @@ bool scan16(const InternalVersionT *vs, const uint8_t *is, int begin, int end,
// Returns true if v[i] <= readVersion for all i such that begin <= i < end
//
// always_inline So that we can optimize when begin or end is a constant.
__attribute((always_inline)) bool scan16(const InternalVersionT *vs, int begin,
int end,
InternalVersionT readVersion) {
inline __attribute((always_inline)) bool scan16(const InternalVersionT *vs,
int begin, int end,
InternalVersionT readVersion) {
assert(0 <= begin && begin < 16);
assert(0 <= end && end <= 16);
assert(begin <= end);