From f5f48287211e4f0d0a21a252970135243d88c701 Mon Sep 17 00:00:00 2001 From: Emmanuele Bassi Date: Thu, 2 Jan 2020 13:42:49 +0000 Subject: [PATCH] Remove global declaration of GMemoryMonitor MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The GMemoryMonitor interface uses G_DECLARE_INTERFACE, which provides a typedef for the interface dummy type. We declare the same type inside the global giotypes.h header, which leads to typedef redeclaration warnings on toolchains that do not support—intentionally or not—the C11 feature of typedef redefinition. While we do have a toolchain requirement for C11 typedef redefinitions listed on our wiki, we also suspended it temporarily to allow users of non-C11 compilers to work on newer versions of GLib; so, let's keep them working a while longer. --- gio/giotypes.h | 1 - 1 file changed, 1 deletion(-) diff --git a/gio/giotypes.h b/gio/giotypes.h index 6f6987eca..c9ad8dd90 100644 --- a/gio/giotypes.h +++ b/gio/giotypes.h @@ -122,7 +122,6 @@ typedef struct _GLoadableIcon GLoadableIcon; /* Dummy typedef */ typedef struct _GBytesIcon GBytesIcon; typedef struct _GMemoryInputStream GMemoryInputStream; typedef struct _GMemoryOutputStream GMemoryOutputStream; -typedef struct _GMemoryMonitor GMemoryMonitor; /** * GMount: