Skip to content

Commit 1beb8d3

Browse files
committed
Ensure all overridden virtual functions are marked with override
This also removes warnings.
1 parent c7759fe commit 1beb8d3

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

features/lwipstack/LWIPStack.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -341,7 +341,7 @@ class LWIP : public OnboardNetworkStack, private mbed::NonCopyable<LWIP> {
341341
nsapi_error_t add_dns_server(const SocketAddress &address, const char *interface_name) override;
342342

343343
/** @copydoc NetworkStack::get_ip_address */
344-
virtual nsapi_error_t get_ip_address(SocketAddress *address);
344+
nsapi_error_t get_ip_address(SocketAddress *address) override;
345345

346346
/** @copydoc NetworkStack::get_ip_address_if */
347347
nsapi_error_t get_ip_address_if(SocketAddress *address, const char *interface_name) override;

features/nanostack/nanostack-interface/Nanostack.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ class Nanostack : public OnboardNetworkStack, private mbed::NonCopyable<Nanostac
5050
/* Local variant with stronger typing and manual address specification */
5151
nsapi_error_t add_ppp_interface(PPP &ppp, bool default_if, Nanostack::PPPInterface **interface_out);
5252

53-
nsapi_error_t remove_ppp_interface(OnboardNetworkStack::Interface **interface_out);
53+
nsapi_error_t remove_ppp_interface(OnboardNetworkStack::Interface **interface_out) override;
5454

5555
protected:
5656

features/netsocket/ppp/ppp_service.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ class ppp_service final : public PPP {
138138
* @param uname User name
139139
* @param password Password
140140
*/
141-
void set_credentials(const char *uname, const char *password);
141+
void set_credentials(const char *uname, const char *password) override;
142142

143143
/** Gets local IP address
144144
*

0 commit comments

Comments
 (0)