Skip to content

Remove global declaration of GMemoryMonitor

Emmanuele Bassi requested to merge no-typedef-redef into master

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.

Merge request reports