From 4589255c4bb9767f9bb545faaef24325dce50cbf Mon Sep 17 00:00:00 2001 From: Li Cao Date: Thu, 14 Nov 2024 23:49:27 +0800 Subject: [PATCH] [posix] add virtual destructor for InfraIf::Dependencies (#2599) On some platforms this will cause build warnings and errors. --- src/ncp/posix/infra_if.hpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/ncp/posix/infra_if.hpp b/src/ncp/posix/infra_if.hpp index 9bfe22d0590..35163b7b3c2 100644 --- a/src/ncp/posix/infra_if.hpp +++ b/src/ncp/posix/infra_if.hpp @@ -57,6 +57,8 @@ class InfraIf class Dependencies { public: + virtual ~Dependencies(void) = default; + virtual otbrError SetInfraIf(unsigned int aInfraIfIndex, bool aIsRunning, const std::vector &aIp6Addresses);