[gnome-software: 1/3] gs-plugin-loader: Ensure the plugin_loader variable is used
- From: Phaedrus Leeds <mwleeds src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software: 1/3] gs-plugin-loader: Ensure the plugin_loader variable is used
- Date: Wed, 10 Feb 2021 20:17:06 +0000 (UTC)
commit 0c33a3fc670c93376dcbefbede2f18b22c482417
Author: Philip Withnall <pwithnall endlessos org>
Date: Wed Feb 10 19:39:05 2021 +0000
gs-plugin-loader: Ensure the plugin_loader variable is used
It’s currently only used within a `HAVE_SYSPROF` block, which means that
the compiler warns about an unused variable if compiling without
sysprof. Squash that warning by using the variable elsewhere too.
This introduces no functional changes.
Signed-off-by: Philip Withnall <pwithnall endlessos org>
lib/gs-plugin-loader.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/lib/gs-plugin-loader.c b/lib/gs-plugin-loader.c
index 8e06b3b4f..e4a034478 100644
--- a/lib/gs-plugin-loader.c
+++ b/lib/gs-plugin-loader.c
@@ -755,7 +755,7 @@ gs_plugin_loader_call_vfunc (GsPluginLoaderHelper *helper,
/* add app to the pending installation queue if necessary */
if (action == GS_PLUGIN_ACTION_INSTALL &&
app != NULL && gs_app_get_state (app) == GS_APP_STATE_QUEUED_FOR_INSTALL) {
- add_app_to_install_queue (helper->plugin_loader, app);
+ add_app_to_install_queue (plugin_loader, app);
}
#ifdef HAVE_SYSPROF
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]