gmemorymonitor.c fails to compile
With latest master on Apple Clang 11.
../gio/gmemorymonitor.c:149:19: error: use of undeclared identifier 'G_TYPE_MEMORY_MONITOR_WARNING_LEVEL'; did you mean 'G_MEMORY_MONITOR_WARNING_LEVEL_LOW'?
G_TYPE_MEMORY_MONITOR_WARNING_LEVEL);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
G_MEMORY_MONITOR_WARNING_LEVEL_LOW
../gio/gioenums.h:1991:3: note: 'G_MEMORY_MONITOR_WARNING_LEVEL_LOW' declared here
G_MEMORY_MONITOR_WARNING_LEVEL_LOW = 50,
^
1 error generated.
Does compile with:
diff --git a/gio/gmemorymonitor.c b/gio/gmemorymonitor.c
index 4368ee3c5..498d10172 100644
--- a/gio/gmemorymonitor.c
+++ b/gio/gmemorymonitor.c
@@ -27,6 +27,7 @@
#include "gioenumtypes.h"
#include "giomodule-priv.h"
#include "gtask.h"
+#include "gioenums.h"
/**
* SECTION:gmemorymonitor
@@ -146,5 +147,5 @@ g_memory_monitor_default_init (GMemoryMonitorInterface *iface)
NULL, NULL,
NULL,
G_TYPE_NONE, 1,
- G_TYPE_MEMORY_MONITOR_WARNING_LEVEL);
+ G_MEMORY_MONITOR_WARNING_LEVEL_LOW);
}
But I have no idea if that's what @hadess and @pwithnall intended to be passed here.