Skip to content

Commit

Permalink
[posix] add virtual destructor for InfraIf::Dependencies (#2599)
Browse files Browse the repository at this point in the history
On some platforms this will cause build warnings and errors.
  • Loading branch information
Irving-cl authored Nov 14, 2024
1 parent 25273ba commit 4589255
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/ncp/posix/infra_if.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,8 @@ class InfraIf
class Dependencies
{
public:
virtual ~Dependencies(void) = default;

virtual otbrError SetInfraIf(unsigned int aInfraIfIndex,
bool aIsRunning,
const std::vector<Ip6Address> &aIp6Addresses);
Expand Down

0 comments on commit 4589255

Please sign in to comment.