summaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-devtools/geany/geany-plugins/0002-projectorganizer-fix-various-warnings.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta-oe/recipes-devtools/geany/geany-plugins/0002-projectorganizer-fix-various-warnings.patch')
-rw-r--r--meta-oe/recipes-devtools/geany/geany-plugins/0002-projectorganizer-fix-various-warnings.patch45
1 files changed, 45 insertions, 0 deletions
diff --git a/meta-oe/recipes-devtools/geany/geany-plugins/0002-projectorganizer-fix-various-warnings.patch b/meta-oe/recipes-devtools/geany/geany-plugins/0002-projectorganizer-fix-various-warnings.patch
new file mode 100644
index 0000000000..c70f4d6e15
--- /dev/null
+++ b/meta-oe/recipes-devtools/geany/geany-plugins/0002-projectorganizer-fix-various-warnings.patch
@@ -0,0 +1,45 @@
1From 58d47e60bdcec62fe74b4a38eaf39d16a9c80d42 Mon Sep 17 00:00:00 2001
2From: =?UTF-8?q?Ji=C5=99=C3=AD=20Techet?= <techet@gmail.com>
3Date: Tue, 5 Mar 2024 18:40:10 +0100
4Subject: [PATCH 2/3] projectorganizer: fix various warnings
5
6Upstream-Status: Backport [https://github.com/geany/geany-plugins/commit/58d47e60bdcec62fe74b4a38eaf39d16a9c80d42]
7Signed-off-by: Khem Raj <raj.khem@gmail.com>
8---
9 projectorganizer/src/prjorg-sidebar.c | 9 +++------
10 1 file changed, 3 insertions(+), 6 deletions(-)
11
12diff --git a/projectorganizer/src/prjorg-sidebar.c b/projectorganizer/src/prjorg-sidebar.c
13index 0139473..e67cce2 100644
14--- a/projectorganizer/src/prjorg-sidebar.c
15+++ b/projectorganizer/src/prjorg-sidebar.c
16@@ -382,7 +382,8 @@ void on_open_file_manager(G_GNUC_UNUSED GtkMenuItem * menuitem, G_GNUC_UNUSED gp
17
18 if (locale_path)
19 {
20- gchar *command, *open_command;
21+ const gchar *open_command;
22+ gchar *command;
23
24 open_command = PRJORG_COMMAND_OPEN;
25 command = g_strconcat (open_command, " \"", locale_path, "\"", NULL);
26@@ -1562,7 +1563,7 @@ gchar **prjorg_sidebar_get_expanded_paths(void)
27 (GtkTreeViewMappingFunc)on_map_expanded, expanded_paths);
28 g_ptr_array_add(expanded_paths, NULL);
29
30- return g_ptr_array_free(expanded_paths, FALSE);
31+ return (gchar **)g_ptr_array_free(expanded_paths, FALSE);
32 }
33
34
35@@ -1587,10 +1588,6 @@ void prjorg_sidebar_update_full(gboolean reload, gchar **expanded_paths)
36
37 if (reload)
38 {
39- GtkTreeSelection *treesel;
40- GtkTreeIter iter;
41- GtkTreeModel *model;
42-
43 expand_data->expanded_paths = expanded_paths != NULL ? expanded_paths : prjorg_sidebar_get_expanded_paths();
44 expand_data->selected_path = get_selected_path();
45