From 4c150f199ee745918c4e187aef3ccdcb7b010750 Mon Sep 17 00:00:00 2001 From: Christoph Reiter Date: Sun, 29 Jul 2018 15:56:35 +0200 Subject: [PATCH] build: enable -Wshadow --- girepository/tools/generate.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/girepository/tools/generate.c b/girepository/tools/generate.c index f35893c3b..36e1d05ad 100644 --- a/girepository/tools/generate.c +++ b/girepository/tools/generate.c @@ -80,11 +80,11 @@ main (int argc, char *argv[]) for (i = 0; input[i]; i++) { - GError *error = NULL; const char *namespace; GMappedFile *mfile; GITypelib *typelib; + error = NULL; mfile = g_mapped_file_new (input[i], FALSE, &error); if (!mfile) g_error ("failed to read '%s': %s", input[i], error->message);