mirror of
https://git.proxmox.com/git/fwupd
synced 2026-03-27 16:09:15 +00:00
trivial: Fix a compile warning on win32
This commit is contained in:
parent
517dc88f4f
commit
7f73445af4
@ -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 */
|
||||
|
||||
Loading…
Reference in New Issue
Block a user