Skip to content

Commit 1debcca

Browse files
michalpasztamobicaSeppo Takalo
authored andcommitted
Fix compilation warnings noticed in mbed-os (ARMmbed#1909)
1 parent 0a18231 commit 1debcca

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

source/6LoWPAN/Thread/thread_extension.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ uint8_t *thread_extension_discover_response_write(protocol_interface_info_entry_
8585
#define thread_extension_version_check(version) (false)
8686
#define thread_extension_discover_response_read(nwk_info, discover_response_tlv, data_ptr, data_len) ((void) 0)
8787
#define thread_extension_discover_response_tlv_write(data, version, securityPolicy) ((void) 0)
88-
#define thread_extension_service_init(cur) (0)
88+
#define thread_extension_service_init(cur) ((void) 0)
8989
#define thread_extension_joining_enabled(interface_id) (false)
9090
#define thread_extension_discover_response_len(cur) (0)
9191
#define thread_extension_discover_response_write(cur, ptr) (ptr)

source/6LoWPAN/Thread/thread_router_bootstrap.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1407,6 +1407,7 @@ static void thread_address_registration_tlv_parse(uint8_t *ptr, uint16_t data_le
14071407
//Register GP --> 16
14081408
int retVal = thread_nd_address_registration(cur, tempIPv6Address, mac16, cur->mac_parameters->pan_id, mac64, &new_neighbour_created);
14091409
thread_extension_address_registration(cur, tempIPv6Address, mac64, new_neighbour_created, retVal == -2);
1410+
(void) retVal;
14101411
} else {
14111412
tr_debug("No Context %u", ctxId);
14121413
}
@@ -1427,6 +1428,7 @@ static void thread_address_registration_tlv_parse(uint8_t *ptr, uint16_t data_le
14271428
//Register GP --> 16
14281429
int retVal = thread_nd_address_registration(cur, ptr, mac16, cur->mac_parameters->pan_id, mac64, &new_neighbour_created);
14291430
thread_extension_address_registration(cur, ptr, mac64, new_neighbour_created, retVal == -2);
1431+
(void) retVal;
14301432
}
14311433

14321434
ptr += 16;

source/Common_Protocols/icmpv6.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1092,7 +1092,7 @@ buffer_t *icmpv6_up(buffer_t *buf)
10921092
buf = rpl_control_source_route_error_handler(buf, cur);
10931093
}
10941094
#endif
1095-
/* no break */
1095+
/* fall through */
10961096

10971097
default:
10981098
if (buf) {

0 commit comments

Comments
 (0)