]> git.puffer.fish Git - mirror/frr.git/commitdiff
lib: Cleanup recent commit warn->werror issues in lib/routemap.c 4451/head
authorDonald Sharp <sharpd@cumulusnetworks.com>
Mon, 3 Jun 2019 14:44:23 +0000 (10:44 -0400)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Mon, 3 Jun 2019 14:44:23 +0000 (10:44 -0400)
The get_route_map_delete_event function should return a value
even if we never get to that part of the function.  Make sure
we know why we are here so it can be fixed appropriately in
the future.

Signed-off-by: Donald Sharp <sharpd@cumulusnetwork.com>
lib/routemap.c

index 807eec9c5951d58ca4ef0db9deac656f2ba39c3c..5883307b9dbbbcb92a1a0b96f87ec9110800899c 100644 (file)
@@ -1333,6 +1333,13 @@ static route_map_event_t get_route_map_delete_event(route_map_event_t type)
                 */
                assert(0);
        }
+
+       assert(0);
+       /*
+        * Return to make c happy but if we get here something has gone
+        * terribly terribly wrong, so yes this return makes no sense.
+        */
+       return RMAP_EVENT_CALL_ADDED;
 }
 
 /* Add match statement to route map. */