Skip to content
Snippets Groups Projects
Commit a9cc8bab authored by Oleg Hahm's avatar Oleg Hahm
Browse files

gnrc: ndp: suppress wrong cppcheck warnings

parent 45cd9ad5
No related branches found
No related tags found
No related merge requests found
...@@ -672,6 +672,8 @@ void gnrc_ndp_retrans_nbr_sol(gnrc_ipv6_nc_t *nc_entry) ...@@ -672,6 +672,8 @@ void gnrc_ndp_retrans_nbr_sol(gnrc_ipv6_nc_t *nc_entry)
mutex_unlock(&ipv6_iface->mutex); mutex_unlock(&ipv6_iface->mutex);
} }
} }
/* cppcheck-suppress knownConditionTrueFalse
* cppcheck bug: probes_remaining is initialized to a value > 1 */
else if (nc_entry->probes_remaining <= 1) { else if (nc_entry->probes_remaining <= 1) {
/* For a 6LoWPAN router entries may be set to UNREACHABLE instead /* For a 6LoWPAN router entries may be set to UNREACHABLE instead
......
...@@ -80,6 +80,8 @@ kernel_pid_t gnrc_ndp_node_next_hop_l2addr(uint8_t *l2addr, uint8_t *l2addr_len, ...@@ -80,6 +80,8 @@ kernel_pid_t gnrc_ndp_node_next_hop_l2addr(uint8_t *l2addr, uint8_t *l2addr_len,
} }
#endif #endif
/* cppcheck-suppress knownConditionTrueFalse
* cppcheck bug: next_hop_ip might be initialized if a FIB is available */
if (next_hop_ip == NULL) { /* no route to host */ if (next_hop_ip == NULL) { /* no route to host */
if (!dst_link_local) { if (!dst_link_local) {
if (iface == KERNEL_PID_UNDEF) { if (iface == KERNEL_PID_UNDEF) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment