From 7f73445af4d9700cfc8a3f4199f59fa949da69ef Mon Sep 17 00:00:00 2001 From: Richard Hughes Date: Fri, 6 May 2022 09:59:07 +0100 Subject: [PATCH] trivial: Fix a compile warning on win32 --- src/fu-main.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/fu-main.c b/src/fu-main.c index aa6563f28..fca8c96d1 100644 --- a/src/fu-main.c +++ b/src/fu-main.c @@ -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 */