Skip to content

Commit 985e1d3

Browse files
Naveen Kajeadbridge
authored andcommitted
thread_mle_message_handler: fix build warning
Fix the following build warning found when building with ARMC6 toolchain for NRF52_DK with mbed cli version 1.8.3 [Warning] thread_mle_message_handler.c@762,0: #188-D: enumerated type mixed with another type [Warning] thread_mle_message_handler.c@834,0: #188-D: enumerated type mixed with another type
1 parent 9198f93 commit 985e1d3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

features/nanostack/sal-stack-nanostack/source/6LoWPAN/Thread/thread_mle_message_handler.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -759,7 +759,7 @@ static void thread_host_child_update_request_process(protocol_interface_info_ent
759759
uint64_t pending_timestamp = 0;// means no pending timestamp
760760
mac_neighbor_table_entry_t *entry_temp;
761761
bool data_request_needed = false;
762-
mle_tlv_info_t tlv_info = {0};
762+
mle_tlv_info_t tlv_info = {MLE_TYPE_SRC_ADDRESS, 0, 0};
763763

764764
tr_debug("Child update request");
765765
entry_temp = mac_neighbor_entry_get_by_ll64(mac_neighbor_info(cur), mle_msg->packet_src_address, false, NULL);
@@ -831,7 +831,7 @@ static void thread_parse_child_update_response(protocol_interface_info_entry_t *
831831
thread_leader_data_t leaderData = {0};
832832
uint8_t status;
833833
bool leader_data_received;
834-
mle_tlv_info_t tlv_info = {0};
834+
mle_tlv_info_t tlv_info = {MLE_TYPE_SRC_ADDRESS, 0, 0};
835835

836836
if (cur->thread_info->thread_endnode_parent == NULL) {
837837
return;

0 commit comments

Comments
 (0)