Source: https://github.com/user-attachments/files/16588718/0013-fix-FTBFS-GCC-14.patch.txt

Fails to build with GCC 14
https://github.com/sylpheed-mail/sylpheed/issues/41

---

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;
