mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-05-29 23:09:34 +00:00
Merge pull request #11089 from opensourcerouting/build-gcc-11.2
build: fix new gcc 11.2 warnings
This commit is contained in:
commit
3f6ebf9b1d
@ -104,7 +104,7 @@ DEFPY(watch_nexthop_v6, watch_nexthop_v6_cmd,
|
|||||||
p.family = AF_INET6;
|
p.family = AF_INET6;
|
||||||
} else {
|
} else {
|
||||||
type_import = true;
|
type_import = true;
|
||||||
p = *(const struct prefix *)inhop;
|
prefix_copy(&p, inhop);
|
||||||
}
|
}
|
||||||
|
|
||||||
sharp_nh_tracker_get(&p);
|
sharp_nh_tracker_get(&p);
|
||||||
@ -149,7 +149,7 @@ DEFPY(watch_nexthop_v4, watch_nexthop_v4_cmd,
|
|||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
type_import = true;
|
type_import = true;
|
||||||
p = *(const struct prefix *)inhop;
|
prefix_copy(&p, inhop);
|
||||||
}
|
}
|
||||||
|
|
||||||
sharp_nh_tracker_get(&p);
|
sharp_nh_tracker_get(&p);
|
||||||
|
Loading…
Reference in New Issue
Block a user