Fix a warning about _g_log_abort()
authorDan Winship <danw@gnome.org>
Wed, 27 Nov 2013 15:57:43 +0000 (10:57 -0500)
committerDan Winship <danw@gnome.org>
Wed, 27 Nov 2013 15:57:43 +0000 (10:57 -0500)
G_BREAKPOINT is not noreturn, so make it so that we abort() if it
returns, to make _g_log_abort() be properly noreturn again.

glib/gmessages.c

index a8af5fe..0a8dc82 100644 (file)
@@ -307,8 +307,8 @@ _g_log_abort (gboolean breakpoint)
 
   if (breakpoint)
     G_BREAKPOINT ();
-  else
-    abort ();
+
+  abort ();
 }
 
 #ifdef G_OS_WIN32