From 0dc3a3fe96810b5dcbafe7a71d23cba0b2a25774 Mon Sep 17 00:00:00 2001
From: Simon McVittie <smcv@collabora.com>
Date: Tue, 27 Jul 2021 10:22:07 +0100
Subject: [PATCH] exports: Fix shadowed local variable and remove suppression

Originally commit 08f69296 in Flatpak. Thanks to Phaedrus Leeds.

Signed-off-by: Simon McVittie <smcv@collabora.com>
---
 pressure-vessel/flatpak-exports.c | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/pressure-vessel/flatpak-exports.c b/pressure-vessel/flatpak-exports.c
index fdc2630cb..6544cfac8 100644
--- a/pressure-vessel/flatpak-exports.c
+++ b/pressure-vessel/flatpak-exports.c
@@ -51,7 +51,6 @@
 #if defined(__GNUC__) && __GNUC__ >= 8
 # pragma GCC diagnostic ignored "-Wcast-function-type"
 #endif
-#pragma GCC diagnostic ignored "-Wshadow"
 #pragma GCC diagnostic ignored "-Wtype-limits"
 
 /* We don't want to export paths pointing into these, because they are readonly
@@ -436,8 +435,6 @@ flatpak_exports_append_bwrap_args (FlatpakExports *exports,
 
       if (exports->host_etc == FLATPAK_FILESYSTEM_MODE_NONE)
         {
-          guint i;
-
           /* We are exposing the host /usr (and friends) but not the
            * host /etc. Additionally expose just enough of /etc to make
            * things that want to read /usr work as expected.
-- 
GitLab