[glib/no-typedef-redef: 117/117] Remove global declaration of GMemoryMonitor



commit f5f48287211e4f0d0a21a252970135243d88c701
Author: Emmanuele Bassi <ebassi gnome org>
Date:   Thu Jan 2 13:42:49 2020 +0000

    Remove global declaration of GMemoryMonitor
    
    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:


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]