Skip to content

Commit 30d25bc

Browse files
author
Arto Kinnunen
authored
Fix compiler warnings (#1986)
Fix compiler warnings regarding unused parameters.
1 parent d46d7b3 commit 30d25bc

File tree

7 files changed

+20
-8
lines changed

7 files changed

+20
-8
lines changed

source/6LoWPAN/Thread/thread_bbr_api.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -757,6 +757,7 @@ bool thread_bbr_routing_enabled(protocol_interface_info_entry_t *cur)
757757

758758
void thread_bbr_network_data_update_notify(protocol_interface_info_entry_t *cur)
759759
{
760+
(void)cur;
760761
thread_mdns_network_data_update_notify();
761762
thread_extension_bbr_route_update(cur);
762763
}

source/6LoWPAN/Thread/thread_management_if.c

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1346,6 +1346,11 @@ int8_t thread_management_get_request_full_nwk_data(int8_t interface_id, bool *fu
13461346

13471347
int thread_management_device_certificate_set(int8_t interface_id, const unsigned char *device_certificate_ptr, uint16_t device_certificate_len, const unsigned char *priv_key_ptr, uint16_t priv_key_len)
13481348
{
1349+
(void) device_certificate_ptr;
1350+
(void) device_certificate_len;
1351+
(void) priv_key_ptr;
1352+
(void) priv_key_len;
1353+
13491354
#ifdef HAVE_THREAD
13501355
protocol_interface_info_entry_t *cur;
13511356

@@ -1359,15 +1364,16 @@ int thread_management_device_certificate_set(int8_t interface_id, const unsigned
13591364

13601365
#else
13611366
(void) interface_id;
1362-
(void) device_certificate_ptr;
1363-
(void) device_certificate_len;
1364-
(void) priv_key_ptr;
1365-
(void) priv_key_len;
13661367
return -1;
13671368
#endif
13681369
}
13691370
int thread_management_network_certificate_set(int8_t interface_id, const unsigned char *network_certificate_ptr, uint16_t network_certificate_len, const unsigned char *priv_key_ptr, uint16_t priv_key_len)
13701371
{
1372+
(void) network_certificate_ptr;
1373+
(void) network_certificate_len;
1374+
(void) priv_key_ptr;
1375+
(void) priv_key_len;
1376+
13711377
#ifdef HAVE_THREAD
13721378
protocol_interface_info_entry_t *cur;
13731379
int ret_val;
@@ -1386,10 +1392,6 @@ int thread_management_network_certificate_set(int8_t interface_id, const unsigne
13861392
return thread_extension_bootstrap_network_private_key_set(cur, priv_key_ptr, priv_key_len);
13871393
#else
13881394
(void) interface_id;
1389-
(void) network_certificate_ptr;
1390-
(void) network_certificate_len;
1391-
(void) priv_key_ptr;
1392-
(void) priv_key_len;
13931395
return -1;
13941396
#endif
13951397
}

source/6LoWPAN/Thread/thread_nd.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -213,6 +213,7 @@ static mac_neighbor_table_entry_t *thread_nd_child_mleid_get(protocol_interface_
213213

214214
static int thread_nd_address_query_lookup(int8_t interface_id, const uint8_t target_addr[static 16], uint16_t *rloc, uint16_t *addr_out, bool *proxy, uint32_t *last_transaction_time, uint8_t *mleid_ptr)
215215
{
216+
(void) rloc;
216217
protocol_interface_info_entry_t *cur = protocol_stack_interface_info_get_by_id(interface_id);
217218
if (!cur) {
218219
return -1;

source/Common_Protocols/icmpv6.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -343,6 +343,7 @@ static buffer_t *icmpv6_echo_request_handler(buffer_t *buf)
343343

344344
static void icmpv6_na_wisun_aro_handler(protocol_interface_info_entry_t *cur_interface, const uint8_t *dptr, const uint8_t *src_addr)
345345
{
346+
(void) src_addr;
346347
dptr += 2;
347348
uint16_t life_time;
348349
uint8_t nd_status = *dptr;

source/NWK_INTERFACE/protocol_core.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,9 @@
6666
#include "6LoWPAN/Thread/thread_management_internal.h"
6767
#include "6LoWPAN/ws/ws_bootstrap.h"
6868
#include "6LoWPAN/ws/ws_common.h"
69+
#ifdef HAVE_WS
6970
#include "6LoWPAN/ws/ws_pae_controller.h"
71+
#endif
7072
#include "ipv6_stack/protocol_ipv6.h"
7173
#include "Service_Libs/whiteboard/whiteboard.h"
7274

@@ -336,7 +338,9 @@ void core_timer_event_handle(uint16_t ticksUpdate)
336338
rpl_control_fast_timer(ticksUpdate);
337339
icmpv6_radv_timer(ticksUpdate);
338340
protocol_core_security_tick_update(ticksUpdate);
341+
#ifdef HAVE_WS
339342
ws_pae_controller_timer(ticksUpdate);
343+
#endif
340344
platform_enter_critical();
341345
protocol_core_timer_info.core_timer_event = false;
342346
platform_exit_critical();

source/Service_Libs/fhss/fhss_ws_empty_functions.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ int fhss_ws_set_parent(fhss_structure_t *fhss_structure, const uint8_t eui64[8],
5151
(void) fhss_structure;
5252
(void) eui64;
5353
(void) bc_timing_info;
54+
(void) force_synch;
5455

5556
return -1;
5657
}

source/libNET/src/ns_net.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,9 @@
6767
#include "6LoWPAN/Thread/thread_bootstrap.h"
6868
#include "6LoWPAN/Thread/thread_management_internal.h"
6969
#include "6LoWPAN/ws/ws_bootstrap.h"
70+
#ifdef HAVE_WS
7071
#include "6LoWPAN/ws/ws_pae_controller.h"
72+
#endif
7173
#include "BorderRouter/border_router.h"
7274
#include "Service_Libs/mle_service/mle_service_api.h"
7375
#include "6LoWPAN/MAC/mac_data_poll.h"

0 commit comments

Comments
 (0)