aboutsummaryrefslogtreecommitdiffstats
path: root/fnet/src/tests/locking
diff options
context:
space:
mode:
Diffstat (limited to 'fnet/src/tests/locking')
-rw-r--r--fnet/src/tests/locking/castspeed.cpp4
-rw-r--r--fnet/src/tests/locking/drainpackets.cpp6
2 files changed, 6 insertions, 4 deletions
diff --git a/fnet/src/tests/locking/castspeed.cpp b/fnet/src/tests/locking/castspeed.cpp
index 859ec08ec69..1f57bc4757c 100644
--- a/fnet/src/tests/locking/castspeed.cpp
+++ b/fnet/src/tests/locking/castspeed.cpp
@@ -18,14 +18,14 @@ class C: public A
{
public:
B *otherB;
- B* asB() override { return otherB; }
+ virtual B* asB() override { return otherB; }
C() : otherB(nullptr) {}
};
class B: public C
{
public:
- B* asB() override { return this; }
+ virtual B* asB() override { return this; }
};
diff --git a/fnet/src/tests/locking/drainpackets.cpp b/fnet/src/tests/locking/drainpackets.cpp
index b453793843f..fb86371c9ec 100644
--- a/fnet/src/tests/locking/drainpackets.cpp
+++ b/fnet/src/tests/locking/drainpackets.cpp
@@ -2,13 +2,15 @@
#include <vespa/vespalib/testkit/test_kit.h>
#include <vespa/fnet/fnet.h>
+
class MyPacket : public FNET_Packet
{
public:
- uint32_t GetPCODE() override { return 0; }
+ uint32_t GetPCODE() override { return 0; }
uint32_t GetLength() override { return 0; }
void Encode(FNET_DataBuffer *) override {}
- bool Decode(FNET_DataBuffer *, uint32_t) override { return true; }
+ bool Decode(FNET_DataBuffer *, uint32_t) override
+ { return true; }
};