From 547a9b29c329e7ca7a311592dd729de16aced9e8 Mon Sep 17 00:00:00 2001 From: Simon McVittie <smcv@collabora.com> Date: Mon, 10 Feb 2020 19:57:41 +0000 Subject: [PATCH] Ignore -Wshadow in another file Signed-off-by: Simon McVittie <smcv@collabora.com> --- src/flatpak-utils-base.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/flatpak-utils-base.c b/src/flatpak-utils-base.c index 23ec448b7..22b37c138 100644 --- a/src/flatpak-utils-base.c +++ b/src/flatpak-utils-base.c @@ -29,6 +29,10 @@ #include <gio/gio.h> #include "libglnx/libglnx.h" +/* To keep this more similar to the original file, we explicitly disable + * this warning rather than fixing it */ +#pragma GCC diagnostic ignored "-Wshadow" + char * flatpak_get_timezone (void) { -- GitLab