1
0
mirror of https://github.com/gryf/gryf-overlay.git synced 2026-01-02 20:04:17 +01:00
Files
gryf-overlay/mail-client/sylpheed/files/sylpheed-debian-fix-FTBFS-GCC-14.patch

29 lines
916 B
Diff

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: https://github.com/sylpheed-mail/sylpheed/issues/41
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;