1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

gnrc: ndp: suppress wrong cppcheck warnings

This commit is contained in:
Oleg Hahm 2017-03-07 17:58:14 +01:00
parent 45cd9ad5c4
commit a9cc8babba
2 changed files with 4 additions and 0 deletions

View File

@ -672,6 +672,8 @@ void gnrc_ndp_retrans_nbr_sol(gnrc_ipv6_nc_t *nc_entry)
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) {
/* For a 6LoWPAN router entries may be set to UNREACHABLE instead

View File

@ -80,6 +80,8 @@ kernel_pid_t gnrc_ndp_node_next_hop_l2addr(uint8_t *l2addr, uint8_t *l2addr_len,
}
#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 (!dst_link_local) {
if (iface == KERNEL_PID_UNDEF) {