trivial: Fix a compile warning on win32

This commit is contained in:
Richard Hughes 2022-05-06 09:59:07 +01:00
parent 517dc88f4f
commit 7f73445af4

View File

@ -2340,14 +2340,15 @@ main(int argc, char *argv[])
G_CALLBACK(fu_main_argv_changed_cb),
priv);
#if GLIB_CHECK_VERSION(2, 63, 3) && !defined(_WIN32)
#if GLIB_CHECK_VERSION(2, 63, 3)
/* shut down on low memory event as we can just rescan hardware */
priv->memory_monitor = g_memory_monitor_dup_default();
if (priv->memory_monitor != NULL)
if (priv->memory_monitor != NULL) {
g_signal_connect(G_MEMORY_MONITOR(priv->memory_monitor),
"low-memory-warning",
G_CALLBACK(fu_main_memory_monitor_warning_cb),
priv);
}
#endif
/* load introspection from file */