Skip to content

Commit 70c4a7d

Browse files
committed
LWIP: add virtual keywords to suppress warning
1 parent 6ba1000 commit 70c4a7d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

features/FEATURE_LWIP/lwip-interface/LWIPStack.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ class LWIP : public OnboardNetworkStack, private mbed::NonCopyable<LWIP> {
159159
* @param[out] interface_out pointer to stack interface object controlling the EMAC
160160
* @return NSAPI_ERROR_OK on success, or error code
161161
*/
162-
nsapi_error_t add_ethernet_interface(EMAC &emac, bool default_if, OnboardNetworkStack::Interface **interface_out);
162+
virtual nsapi_error_t add_ethernet_interface(EMAC &emac, bool default_if, OnboardNetworkStack::Interface **interface_out);
163163

164164
/** Register a PPP interface with the IP stack
165165
*
@@ -193,7 +193,7 @@ class LWIP : public OnboardNetworkStack, private mbed::NonCopyable<LWIP> {
193193
* version is chosen by the stack (defaults to NSAPI_UNSPEC)
194194
* @return 0 on success, negative error code on failure
195195
*/
196-
nsapi_error_t gethostbyname(const char *host,
196+
virtual nsapi_error_t gethostbyname(const char *host,
197197
SocketAddress *address, nsapi_version_t version = NSAPI_UNSPEC);
198198

199199
/** Add a domain name server to list of servers to query

0 commit comments

Comments
 (0)