[gnome-software/wip/unused-vars-without-sysprof] gs-plugin-loader: Unused variables in plugin_setup_cb() without sysprof
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software/wip/unused-vars-without-sysprof] gs-plugin-loader: Unused variables in plugin_setup_cb() without sysprof
- Date: Fri, 3 Jun 2022 06:43:18 +0000 (UTC)
commit 2fc6ea63b9225046b085966346adfb9df32d6c2d
Author: Milan Crha <mcrha redhat com>
Date: Fri Jun 3 08:40:40 2022 +0200
gs-plugin-loader: Unused variables in plugin_setup_cb() without sysprof
When the build doesn't have the sysprof a compiler warning about unused
variables is emitted.
lib/gs-plugin-loader.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
---
diff --git a/lib/gs-plugin-loader.c b/lib/gs-plugin-loader.c
index eda20cca3..3ac2a4419 100644
--- a/lib/gs-plugin-loader.c
+++ b/lib/gs-plugin-loader.c
@@ -2503,9 +2503,11 @@ plugin_setup_cb (GObject *source_object,
{
GsPlugin *plugin = GS_PLUGIN (source_object);
g_autoptr(GTask) task = g_steal_pointer (&user_data);
+ g_autoptr(GError) local_error = NULL;
+#ifdef HAVE_SYSPROF
GsPluginLoader *plugin_loader = g_task_get_source_object (task);
SetupData *data = g_task_get_task_data (task);
- g_autoptr(GError) local_error = NULL;
+#endif /* HAVE_SYSPROF */
g_assert (GS_PLUGIN_GET_CLASS (plugin)->setup_finish != NULL);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]