]> git.puffer.fish Git - mirror/frr.git/commitdiff
babeld: GCC complaining about no return in non-void function
authorDonald Sharp <sharpd@cumulusnetworks.com>
Thu, 13 Feb 2020 13:44:40 +0000 (08:44 -0500)
committerDavid Lamparter <equinox@diac24.net>
Thu, 23 Apr 2020 17:13:47 +0000 (19:13 +0200)
The babel_main_loop function did not have a return for
a non-void function.  For some reason gcc is starting to complain
about this now.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
(cherry picked from commit be04d1487f975e4044c2c07089722dab7f5afbff)

babeld/babeld.c

index 6ad004a4a41a011f738df0b6e70daf2b10999a6d..07bae4f66076536b32fb227f67463facaf2fe2bb 100644 (file)
@@ -411,6 +411,7 @@ babel_main_loop(struct thread *thread)
     }
 
     assert(0); /* this line should never be reach */
+    return 0;
 }
 
 static void