[gobject-introspection] g-ir-inspect: Ensure variables are at the top of block



commit 9df6f0ea31ccb3ad0bdbc48ed04ac7c417547d46
Author: Chun-wei Fan <fanchunwei src gnome org>
Date:   Thu May 18 20:42:28 2017 -0700

    g-ir-inspect: Ensure variables are at the top of block
    
    We did not yet advertise C99 requirements for G-I yet, so let's not
    assume this yet.

 tools/g-ir-inspect.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/tools/g-ir-inspect.c b/tools/g-ir-inspect.c
index 2dfe61c..5699e93 100644
--- a/tools/g-ir-inspect.c
+++ b/tools/g-ir-inspect.c
@@ -77,10 +77,11 @@ main (gint   argc,
     { G_OPTION_REMAINING, 0, 0, G_OPTION_ARG_STRING_ARRAY, &namespaces, "The typelib to inspect", 
"NAMESPACE" },
     { NULL },
   };
+  GOptionContext *context = NULL;
 
   setlocale (LC_ALL, "");
 
-  GOptionContext *context = g_option_context_new ("- Inspect GI typelib");
+  context = g_option_context_new ("- Inspect GI typelib");
   g_option_context_add_main_entries (context, options, NULL);
   if (!g_option_context_parse (context, &argc, &argv, &error))
     {


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