Skip to content

Commit

Permalink
[spinel] fix the non-virtual destructor error
Browse files Browse the repository at this point in the history
  • Loading branch information
zhanglongxia committed Jun 6, 2023
1 parent 7e8f77b commit dae1c06
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/lib/spinel/spinel_interface.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,12 @@ class SpinelInterface
*
*/
virtual otError HardwareReset(void) = 0;

/**
* Marks destructor virtual method.
*
*/
virtual ~SpinelInterface() = default;
};
} // namespace Spinel
} // namespace ot
Expand Down

0 comments on commit dae1c06

Please sign in to comment.