diff --git a/features/cellular/TESTS/socket/udp/main.cpp b/features/cellular/TESTS/socket/udp/main.cpp index 3f2860c5d6..0e3443952e 100644 --- a/features/cellular/TESTS/socket/udp/main.cpp +++ b/features/cellular/TESTS/socket/udp/main.cpp @@ -68,7 +68,7 @@ public: sigio(NULL); } } - ~EchoSocket() { + virtual ~EchoSocket() { TEST_ASSERT(close() == NSAPI_ERROR_OK); delete _data; } diff --git a/features/cellular/framework/targets/QUECTEL/BG96/QUECTEL_BG96_CellularPower.h b/features/cellular/framework/targets/QUECTEL/BG96/QUECTEL_BG96_CellularPower.h index c0bf042ff3..014e4fe714 100644 --- a/features/cellular/framework/targets/QUECTEL/BG96/QUECTEL_BG96_CellularPower.h +++ b/features/cellular/framework/targets/QUECTEL/BG96/QUECTEL_BG96_CellularPower.h @@ -27,7 +27,6 @@ class QUECTEL_BG96_CellularPower : public AT_CellularPower { public: QUECTEL_BG96_CellularPower(ATHandler &atHandler); - virtual ~QUECTEL_BG96_CellularPower(); public: //from CellularPower virtual nsapi_error_t set_device_ready_urc_cb(mbed::Callback callback);