Merge pull request #11089 from opensourcerouting/build-gcc-11.2

build: fix new gcc 11.2 warnings
This commit is contained in:
Igor Ryzhov 2022-04-26 13:18:18 +03:00 committed by GitHub
commit 3f6ebf9b1d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -104,7 +104,7 @@ DEFPY(watch_nexthop_v6, watch_nexthop_v6_cmd,
p.family = AF_INET6;
} else {
type_import = true;
p = *(const struct prefix *)inhop;
prefix_copy(&p, inhop);
}
sharp_nh_tracker_get(&p);
@ -149,7 +149,7 @@ DEFPY(watch_nexthop_v4, watch_nexthop_v4_cmd,
}
else {
type_import = true;
p = *(const struct prefix *)inhop;
prefix_copy(&p, inhop);
}
sharp_nh_tracker_get(&p);