[glib] Fix a warning about _g_log_abort()



commit e53caad4f139e2df0b34dae5864576796dda514e
Author: Dan Winship <danw gnome org>
Date:   Wed Nov 27 10:57:43 2013 -0500

    Fix a warning about _g_log_abort()
    
    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 |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/glib/gmessages.c b/glib/gmessages.c
index a8af5fe..0a8dc82 100644
--- a/glib/gmessages.c
+++ b/glib/gmessages.c
@@ -307,8 +307,8 @@ _g_log_abort (gboolean breakpoint)
 
   if (breakpoint)
     G_BREAKPOINT ();
-  else
-    abort ();
+
+  abort ();
 }
 
 #ifdef G_OS_WIN32


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]