Skip to content

Commit

Permalink
Merge pull request #11383 from FRRouting/mergify/bp/stable/8.1/pr-11089
Browse files Browse the repository at this point in the history
build: fix new gcc 11.2 warnings (backport #11089)
  • Loading branch information
ton31337 committed Jun 10, 2022
2 parents 8c40a7c + 91449e2 commit 1cd828e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sharpd/sharp_vty.c
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,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);
Expand Down Expand Up @@ -147,7 +147,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);
Expand Down

0 comments on commit 1cd828e

Please sign in to comment.