[gtk+] Drop the --g-fatal-warnings argument



commit 4cfcca7997c3f91a5a020882d0ad2ba69b3259bd
Author: Matthias Clasen <mclasen redhat com>
Date:   Tue Dec 27 18:48:02 2016 -0500

    Drop the --g-fatal-warnings argument
    
    We don't need it, GLib has an environment variable for this.

 gtk/gtkmain.c |   12 ------------
 1 files changed, 0 insertions(+), 12 deletions(-)
---
diff --git a/gtk/gtkmain.c b/gtk/gtkmain.c
index 691c589..69b5c9c 100644
--- a/gtk/gtkmain.c
+++ b/gtk/gtkmain.c
@@ -396,7 +396,6 @@ gtk_disable_setlocale (void)
 #endif
 
 static GString *gtk_modules_string = NULL;
-static gboolean g_fatal_warnings = FALSE;
 
 #ifdef G_ENABLE_DEBUG
 static gboolean
@@ -421,8 +420,6 @@ gtk_arg_no_debug_cb (const char *key, const char *value, gpointer user_data)
 #endif /* G_ENABLE_DEBUG */
 
 static const GOptionEntry gtk_args[] = {
-  { "g-fatal-warnings", 0, 0, G_OPTION_ARG_NONE, &g_fatal_warnings, 
-    /* Description of --g-fatal-warnings in --help output */   N_("Make all warnings fatal"), NULL },
 #ifdef G_ENABLE_DEBUG
   { "gtk-debug",        0, 0, G_OPTION_ARG_CALLBACK, gtk_arg_debug_cb,    
     /* Description of --gtk-debug=FLAGS in --help output */    N_("GTK+ debugging flags to set"), 
@@ -686,15 +683,6 @@ do_post_parse_initialization (int    *argc,
   signal (SIGPIPE, SIG_IGN);
 #endif
 
-  if (g_fatal_warnings)
-    {
-      GLogLevelFlags fatal_mask;
-
-      fatal_mask = g_log_set_always_fatal (G_LOG_FATAL_MASK);
-      fatal_mask |= G_LOG_LEVEL_WARNING | G_LOG_LEVEL_CRITICAL;
-      g_log_set_always_fatal (fatal_mask);
-    }
-
   if (debug_flags[0].flags & GTK_DEBUG_UPDATES)
     gtk_debug_updates_set_enabled (TRUE);
 


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