mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-15 11:15:47 +00:00
bgpd: workaround clang-sa for set but not used value
Our switch statements with a default value confuse clang-sa 19. Make it happy. Just following David's earlier commit. Signed-off-by: Donald Sharp <sharpd@nvidia.com>
This commit is contained in:
parent
56495a88df
commit
07e9004c62
@ -4403,6 +4403,7 @@ int bgp_rfapi_cfg_write(struct vty *vty, struct bgp *bgp)
|
|||||||
{
|
{
|
||||||
const char *s = "";
|
const char *s = "";
|
||||||
|
|
||||||
|
(void)s; /* clang-SA */
|
||||||
switch (hc->redist_mode) {
|
switch (hc->redist_mode) {
|
||||||
case VNC_REDIST_MODE_PLAIN:
|
case VNC_REDIST_MODE_PLAIN:
|
||||||
s = "plain";
|
s = "plain";
|
||||||
|
@ -1257,6 +1257,8 @@ static int rfapiShowRemoteRegistrationsIt(struct bgp *bgp, void *stream,
|
|||||||
const char *agetype = "";
|
const char *agetype = "";
|
||||||
char *s;
|
char *s;
|
||||||
const char *type = "";
|
const char *type = "";
|
||||||
|
|
||||||
|
(void)type; /* clang-SA */
|
||||||
if (show_imported) {
|
if (show_imported) {
|
||||||
type = "Imported";
|
type = "Imported";
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user