From: Stephen Hemminger Date: Tue, 6 Dec 2011 21:25:46 +0000 (+0400) Subject: ospf6d: fix compile warning from falling off end of main X-Git-Tag: frr-2.0-rc1~1979 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=c143c38bc707194d52aec544e62e5485c6c4bc08;p=mirror%2Ffrr.git ospf6d: fix compile warning from falling off end of main ospf6 main always calls ospf6_exit() which always calls exit. Use attributes to tell GCC that this is ok. --- diff --git a/ospf6d/ospf6_main.c b/ospf6d/ospf6_main.c index 0e61315271..6f7717c896 100644 --- a/ospf6d/ospf6_main.c +++ b/ospf6d/ospf6_main.c @@ -129,7 +129,7 @@ Report bugs to zebra@zebra.org\n", progname); exit (status); } -static void +static void __attribute__ ((noreturn)) ospf6_exit (int status) { extern struct ospf6 *ospf6;