File 0003-Add-inline-with-SNAPPY_ATTRIBUTE_ALWAYS_INLINE.patch of Package arangodb3
From 76ef2eee74f4802b43d48264def197fc87660fb2 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Klaus=20K=C3=A4mpf?= <kkaempf@gmail.com>
Date: Thu, 24 Feb 2022 20:11:33 +0100
Subject: [PATCH 3/7] Add inline with SNAPPY_ATTRIBUTE_ALWAYS_INLINE
https://github.com/google/snappy/pull/128
---
3rdParty/snappy/snappy-1.1.9/snappy.cc | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/3rdParty/snappy/snappy-1.1.9/snappy.cc b/3rdParty/snappy/snappy-1.1.9/snappy.cc
index 79dc0e8d507..51157be2455 100644
--- a/3rdParty/snappy/snappy-1.1.9/snappy.cc
+++ b/3rdParty/snappy/snappy-1.1.9/snappy.cc
@@ -1014,7 +1014,7 @@ void MemMove(ptrdiff_t dst, const void* src, size_t size) {
}
SNAPPY_ATTRIBUTE_ALWAYS_INLINE
-size_t AdvanceToNextTag(const uint8_t** ip_p, size_t* tag) {
+inline size_t AdvanceToNextTag(const uint8_t** ip_p, size_t* tag) {
const uint8_t*& ip = *ip_p;
// This section is crucial for the throughput of the decompression loop.
// The latency of an iteration is fundamentally constrained by the
--
2.39.2