[gnome-software: 4/5] flatpak: Move variable to ifdef section that it's used
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software: 4/5] flatpak: Move variable to ifdef section that it's used
- Date: Thu, 8 Jul 2021 09:12:43 +0000 (UTC)
commit d2a7d47a221f65c57bcd105c025ecfc8bb4911f2
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date: Mon Jun 28 12:17:30 2021 -0300
flatpak: Move variable to ifdef section that it's used
Otherwise, when compiled out, the comipler complains about an
unused variable. Trivial change.
plugins/flatpak/gs-flatpak.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/plugins/flatpak/gs-flatpak.c b/plugins/flatpak/gs-flatpak.c
index ce6a6615d..f1f87f61a 100644
--- a/plugins/flatpak/gs-flatpak.c
+++ b/plugins/flatpak/gs-flatpak.c
@@ -2782,11 +2782,11 @@ get_renamed_component (GsFlatpak *self,
{
const gchar *origin = gs_app_get_origin (app);
const gchar *renamed_to;
- g_autofree gchar *xpath = NULL;
#if LIBXMLB_CHECK_VERSION(0, 3, 0)
g_autoptr(XbQuery) query = NULL;
g_auto(XbQueryContext) context = XB_QUERY_CONTEXT_INIT ();
#else
+ g_autofree gchar *xpath = NULL;
g_autofree gchar *source_safe = NULL;
#endif
g_autoptr(FlatpakRemoteRef) remote_ref = NULL;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]