@@ -66,10 +66,10 @@ class OnboardNetworkStack : public NetworkStack {
66
66
* For IPv4, this value will be ignored.
67
67
* @return NSAPI_ERROR_OK on success, or error code
68
68
*/
69
- virtual nsapi_error_t set_ip_address (const char *ip,
70
- const char *netmask,
71
- const char *gw,
72
- uint8_t ipv6_flag)
69
+ virtual nsapi_error_t set_ip_address ([[maybe_unused]] const char *ip,
70
+ [[maybe_unused]] const char *netmask,
71
+ [[maybe_unused]] const char *gw,
72
+ [[maybe_unused]] uint8_t ipv6_flag)
73
73
{
74
74
return NSAPI_ERROR_UNSUPPORTED;
75
75
}
@@ -122,7 +122,7 @@ class OnboardNetworkStack : public NetworkStack {
122
122
* @return string containing name of network interface for example "en0"
123
123
*/
124
124
125
- virtual char *get_interface_name (char *buf)
125
+ virtual char *get_interface_name ([[maybe_unused]] char *buf)
126
126
{
127
127
return NULL ;
128
128
};
@@ -137,7 +137,7 @@ class OnboardNetworkStack : public NetworkStack {
137
137
virtual nsapi_error_t get_ip_address (SocketAddress *address) = 0;
138
138
139
139
/* * @copydoc NetworkStack::get_ipv6_link_local_address */
140
- virtual nsapi_error_t get_ipv6_link_local_address (SocketAddress *address)
140
+ virtual nsapi_error_t get_ipv6_link_local_address ([[maybe_unused]] SocketAddress *address)
141
141
{
142
142
return NSAPI_ERROR_UNSUPPORTED;
143
143
}
@@ -162,38 +162,38 @@ class OnboardNetworkStack : public NetworkStack {
162
162
*/
163
163
virtual nsapi_error_t add_ethernet_interface (EMAC &emac, bool default_if, Interface **interface_out, NetworkInterface *user_network_interface = NULL ) = 0;
164
164
165
- virtual nsapi_error_t add_ethernet_interface (EMAC &emac, bool default_if, Interface **interface_out, const uint8_t *mac_addr, NetworkInterface *user_network_interface = NULL )
165
+ virtual nsapi_error_t add_ethernet_interface ([[maybe_unused]] EMAC &emac, [[maybe_unused]] bool default_if, [[maybe_unused]] Interface **interface_out, [[maybe_unused]] const uint8_t *mac_addr, [[maybe_unused]] NetworkInterface *user_network_interface = NULL )
166
166
167
167
{
168
168
return NSAPI_ERROR_UNSUPPORTED;
169
169
}
170
170
171
- virtual nsapi_error_t add_l3ip_interface (L3IP &l3ip, bool default_if, Interface **interface_out)
171
+ virtual nsapi_error_t add_l3ip_interface ([[maybe_unused]] L3IP &l3ip, [[maybe_unused]] bool default_if, [[maybe_unused]] Interface **interface_out)
172
172
{
173
173
return NSAPI_ERROR_OK;
174
174
};
175
175
176
- virtual nsapi_error_t add_ppp_interface (PPP &ppp, bool default_if, Interface **interface_out)
176
+ virtual nsapi_error_t add_ppp_interface ([[maybe_unused]] PPP &ppp, [[maybe_unused]] bool default_if, [[maybe_unused]] Interface **interface_out)
177
177
{
178
178
return NSAPI_ERROR_UNSUPPORTED;
179
179
};
180
180
181
- virtual nsapi_error_t remove_ethernet_interface (Interface **interface_out)
181
+ virtual nsapi_error_t remove_ethernet_interface ([[maybe_unused]] Interface **interface_out)
182
182
{
183
183
return NSAPI_ERROR_OK;
184
184
};
185
185
186
- virtual nsapi_error_t remove_l3ip_interface (Interface **interface_out)
186
+ virtual nsapi_error_t remove_l3ip_interface ([[maybe_unused]] Interface **interface_out)
187
187
{
188
188
return NSAPI_ERROR_OK;
189
189
};
190
190
191
- virtual nsapi_error_t remove_ppp_interface (Interface **interface_out)
191
+ virtual nsapi_error_t remove_ppp_interface ([[maybe_unused]] Interface **interface_out)
192
192
{
193
193
return NSAPI_ERROR_UNSUPPORTED;
194
194
};
195
195
196
- virtual void set_default_interface (OnboardNetworkStack::Interface *interface)
196
+ virtual void set_default_interface ([[maybe_unused]] OnboardNetworkStack::Interface *interface)
197
197
{
198
198
}
199
199
0 commit comments