From 3a0ee309d50085cc2293317ff8f494cf4b5c10e5 Mon Sep 17 00:00:00 2001 From: Richard Hughes Date: Mon, 14 Dec 2020 14:22:18 +0000 Subject: [PATCH] trivial: Fix build warning when compiling without systemd --- src/fu-tool.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/fu-tool.c b/src/fu-tool.c index 318c38e64..12863db49 100644 --- a/src/fu-tool.c +++ b/src/fu-tool.c @@ -167,9 +167,8 @@ fu_util_show_plugin_warnings (FuUtilPrivate *priv) static gboolean fu_util_start_engine (FuUtilPrivate *priv, FuEngineLoadFlags flags, GError **error) { - g_autoptr(GError) error_local = NULL; - #ifdef HAVE_SYSTEMD + g_autoptr(GError) error_local = NULL; if (!fu_systemd_unit_stop (fu_util_get_systemd_unit (), &error_local)) g_debug ("Failed to stop daemon: %s", error_local->message); #endif