summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChun-wei Fan <fanchunwei@src.gnome.org>2017-05-18 20:42:28 -0700
committerChun-wei Fan <fanchunwei@src.gnome.org>2017-05-18 20:42:28 -0700
commit9df6f0ea31ccb3ad0bdbc48ed04ac7c417547d46 (patch)
tree3295c45fbc4266c621eab1b348f23333c6da65dd
parent12c304562add775dd80f698ad23aa59e8e87d879 (diff)
downloadgobject-introspection-9df6f0ea31ccb3ad0bdbc48ed04ac7c417547d46.tar.gz
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.
-rw-r--r--tools/g-ir-inspect.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/g-ir-inspect.c b/tools/g-ir-inspect.c
index 2dfe61c2..5699e93d 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))
{