]> git.puffer.fish Git - matthieu/frr.git/commitdiff
ospf6d: fix compile warning from falling off end of main
authorStephen Hemminger <shemminger@vyatta.com>
Tue, 6 Dec 2011 21:25:46 +0000 (01:25 +0400)
committerDenis Ovsienko <infrastation@yandex.ru>
Tue, 6 Dec 2011 21:25:46 +0000 (01:25 +0400)
ospf6 main always calls ospf6_exit() which always calls exit.
Use attributes to tell GCC that this is ok.

ospf6d/ospf6_main.c

index 0e61315271c4dad77179dccea87b9b4d7cf53989..6f7717c896cd4b2ff6428d32e79857ece2385b74 100644 (file)
@@ -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;