From: darkjames Date: Fri, 22 Apr 2011 07:15:45 +0000 (+0000) Subject: Add return instructions for system without support for G_GNUC_NORETURN (e.g. some... X-Git-Url: http://git.samba.org/samba.git/?p=obnox%2Fwireshark%2Fwip.git;a=commitdiff_plain;h=fe48f482414b85d666504685ea16fc2d673c4912 Add return instructions for system without support for G_GNUC_NORETURN (e.g. some older gcc compilers). Reported by Anders Broman on -dev list. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@36797 f5534014-38df-0310-8fa8-9805f1628bb7 --- diff --git a/dumpcap.c b/dumpcap.c index 9a979484da..5444cc0789 100644 --- a/dumpcap.c +++ b/dumpcap.c @@ -3902,6 +3902,7 @@ main(int argc, char *argv[]) /* capture failed */ exit_main(1); } + return 0; /* never here, make compiler happy */ } diff --git a/gtk/hostlist_table.c b/gtk/hostlist_table.c index a52d7cbf47..3cc32e41fb 100644 --- a/gtk/hostlist_table.c +++ b/gtk/hostlist_table.c @@ -338,6 +338,7 @@ hostlist_sort_column(GtkTreeModel *model, #endif } g_assert_not_reached(); + return 0; } static void