summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTor Egge <Tor.Egge@yahooinc.com>2023-06-06 21:57:31 +0200
committerTor Egge <Tor.Egge@yahooinc.com>2023-06-06 21:57:31 +0200
commit01cbcbdff36f1cdc9dd67fc57e4700d9b554fc59 (patch)
treed56dbb5148e7c260177b5f5dc7c8d17b7481c280
parentf9a06e5730bd5312a501c73c07c27659f99dfe6c (diff)
Eliminate maybe-uninitialized warning in FNET_Transport::select_thread.
-rw-r--r--fnet/src/vespa/fnet/transport.cpp12
1 files changed, 8 insertions, 4 deletions
diff --git a/fnet/src/vespa/fnet/transport.cpp b/fnet/src/vespa/fnet/transport.cpp
index 1553fc010c0..be6dd3e5e39 100644
--- a/fnet/src/vespa/fnet/transport.cpp
+++ b/fnet/src/vespa/fnet/transport.cpp
@@ -20,12 +20,16 @@ struct HashState {
const void *self;
clock::time_point now;
uint64_t key_hash;
- HashState(const void *key, size_t key_len)
- : self(this),
- now(clock::now()),
- key_hash(XXH64(key, key_len, 0)) {}
+ HashState(const void *key, size_t key_len) __attribute__((noinline));
};
+HashState::HashState(const void *key, size_t key_len)
+ : self(this),
+ now(clock::now()),
+ key_hash(XXH64(key, key_len, 0))
+{
+}
+
VESPA_THREAD_STACK_TAG(fnet_work_pool);
struct DefaultTimeTools : fnet::TimeTools {