Merge pull request #13042 from hugueskamba/hk_override_warning_fix

Ensure all overridden virtual functions are marked with `override`
pull/13077/head
Martin Kojtal 2020-06-05 15:49:06 +02:00 committed by GitHub
commit b21d5e8125
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 3 deletions

View File

@ -341,7 +341,7 @@ public:
nsapi_error_t add_dns_server(const SocketAddress &address, const char *interface_name) override;
/** @copydoc NetworkStack::get_ip_address */
virtual nsapi_error_t get_ip_address(SocketAddress *address);
nsapi_error_t get_ip_address(SocketAddress *address) override;
/** @copydoc NetworkStack::get_ip_address_if */
nsapi_error_t get_ip_address_if(SocketAddress *address, const char *interface_name) override;

View File

@ -50,7 +50,7 @@ public:
/* Local variant with stronger typing and manual address specification */
nsapi_error_t add_ppp_interface(PPP &ppp, bool default_if, Nanostack::PPPInterface **interface_out);
nsapi_error_t remove_ppp_interface(OnboardNetworkStack::Interface **interface_out);
nsapi_error_t remove_ppp_interface(OnboardNetworkStack::Interface **interface_out) override;
protected:

View File

@ -138,7 +138,7 @@ public:
* @param uname User name
* @param password Password
*/
void set_credentials(const char *uname, const char *password);
void set_credentials(const char *uname, const char *password) override;
/** Gets local IP address
*