blob: 89de0aee9ef3c2b8f0d4431560b5a1c29fe6e969 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
From: Ricardo Mones <mones@debian.org>
Subject: fix FTBFS with GCC 14 compiler
Last-Update: 2024-08-12
Bug-Debian: https://bugs.debian.org/1075546
Forwarded: no
diff --git a/libsylph/utils.c b/libsylph/utils.c
index aabce066..68ba2827 100644
--- a/libsylph/utils.c
+++ b/libsylph/utils.c
@@ -4254,7 +4254,7 @@ gint execute_open_file(const gchar *file, const gchar *content_type)
log_print("opening %s - %s\n", file, content_type ? content_type : "");
argv[1] = file;
- execute_async(argv);
+ execute_async((gchar * const*) argv);
#else
const gchar *argv[3] = {"xdg-open", NULL, NULL};
@@ -4263,7 +4263,7 @@ gint execute_open_file(const gchar *file, const gchar *content_type)
log_print("opening %s - %s\n", file, content_type ? content_type : "");
argv[1] = file;
- execute_async(argv);
+ execute_async((gchar * const*) argv);
#endif
return 0;
|