diff --git a/src/flatpak-utils-base.c b/src/flatpak-utils-base.c
index 23ec448b72e3ee390613a233064f5eb6c681d70e..22b37c138e9e2bf769b9a7f58e386c820d5049b7 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)
 {