From 0c24bd951ee73519fd24453b43f064d9b6de116c Mon Sep 17 00:00:00 2001 From: Xiao Pan Date: Mon, 18 Aug 2025 14:18:13 +0800 Subject: sdcv merged the PR, no need the patch --- ...-stardict_lib.cpp-use-explicit-const_cast.patch | 29 ---------------------- 1 file changed, 29 deletions(-) delete mode 100644 pkgbuilds/sdcv-git/0001-stardict_lib.cpp-use-explicit-const_cast.patch (limited to 'pkgbuilds/sdcv-git/0001-stardict_lib.cpp-use-explicit-const_cast.patch') diff --git a/pkgbuilds/sdcv-git/0001-stardict_lib.cpp-use-explicit-const_cast.patch b/pkgbuilds/sdcv-git/0001-stardict_lib.cpp-use-explicit-const_cast.patch deleted file mode 100644 index bcf22ff..0000000 --- a/pkgbuilds/sdcv-git/0001-stardict_lib.cpp-use-explicit-const_cast.patch +++ /dev/null @@ -1,29 +0,0 @@ -From aec5081a8c852ef7f7330985472c564eed6c998c Mon Sep 17 00:00:00 2001 -From: Andrew Savchenko -Date: Fri, 20 Sep 2024 16:32:47 +0300 -Subject: [PATCH] stardict_lib.cpp: use explicit const_cast - -Gcc-14 considers incompatible pointer types as an error, so use -expcilict const_cast to convert from const char* to gchar*. - -Signed-off-by: Andrew Savchenko ---- - src/stardict_lib.cpp | 2 +- - 1 file changed, 1 insertion(+), 1 deletion(-) - -diff --git a/src/stardict_lib.cpp b/src/stardict_lib.cpp -index 83fbc59..799a025 100644 ---- a/src/stardict_lib.cpp -+++ b/src/stardict_lib.cpp -@@ -1047,7 +1047,7 @@ bool Libs::LookupSimilarWord(const gchar *sWord, std::set &iWordIndices, - } - // Upper the first character and lower others. - if (!bFound) { -- gchar *nextchar = g_utf8_next_char(sWord); -+ gchar *nextchar = const_cast(g_utf8_next_char(sWord)); - gchar *firstchar = g_utf8_strup(sWord, nextchar - sWord); - nextchar = g_utf8_strdown(nextchar, -1); - casestr = g_strdup_printf("%s%s", firstchar, nextchar); --- -2.49.0 - -- cgit v1.2.3-70-g09d2