]> git.puffer.fish Git - mirror/frr.git/commitdiff
bfdd, bgpd: clean up clang warnings 18675/head
authorMark Stapp <mjs@cisco.com>
Wed, 16 Apr 2025 15:39:26 +0000 (11:39 -0400)
committerMark Stapp <mjs@cisco.com>
Wed, 16 Apr 2025 17:50:21 +0000 (13:50 -0400)
Clean up some clang compiler warnings.

Signed-off-by: Mark Stapp <mjs@cisco.com>
bfdd/bfd.c
bgpd/bgp_bmp.c

index e538aa64c2fad546770c205e20c5861461288804..f199970e2084b9c13ca81db79a80ec4ed6fad1c1 100644 (file)
@@ -2518,7 +2518,7 @@ void sbfd_reflector_free(const uint32_t discr)
        return;
 }
 
-void sbfd_reflector_flush()
+void sbfd_reflector_flush(void)
 {
        sbfd_discr_iterate(_sbfd_reflector_free, NULL);
        return;
index b1bff82b0550feb1177d02630a07756d13d634be..e09e7b494123cb8d2fa203e9af00392c7d51b1fb 100644 (file)
@@ -3542,7 +3542,6 @@ static int bmp_bgp_attribute_updated(struct bgp *bgp, bool withdraw)
        struct bmp_targets *bt;
        struct listnode *node;
        struct bmp_imported_bgp *bib;
-       int ret = 0;
        struct stream *s = bmp_peerstate(bgp->peer_self, withdraw);
        struct bmp *bmp;
        afi_t afi;
@@ -3553,8 +3552,8 @@ static int bmp_bgp_attribute_updated(struct bgp *bgp, bool withdraw)
 
        if (bmpbgp) {
                frr_each (bmp_targets, &bmpbgp->targets, bt) {
-                       ret = bmp_bgp_attribute_updated_instance(bt, &bmpbgp->vrf_state, bgp,
-                                                                withdraw, s);
+                       bmp_bgp_attribute_updated_instance(bt, &bmpbgp->vrf_state, bgp,
+                                                          withdraw, s);
                        if (withdraw)
                                continue;
                        frr_each (bmp_session, &bt->sessions, bmp) {
@@ -3575,8 +3574,8 @@ static int bmp_bgp_attribute_updated(struct bgp *bgp, bool withdraw)
                        frr_each (bmp_imported_bgps, &bt->imported_bgps, bib) {
                                if (bgp_lookup_by_name(bib->name) != bgp)
                                        continue;
-                               ret += bmp_bgp_attribute_updated_instance(bt, &bib->vrf_state, bgp,
-                                                                         withdraw, s);
+                               bmp_bgp_attribute_updated_instance(bt, &bib->vrf_state, bgp,
+                                                                  withdraw, s);
                                if (withdraw)
                                        continue;
                                frr_each (bmp_session, &bt->sessions, bmp) {