summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPascal Jäger <pascal.jaeger@leimstift.de>2022-12-07 16:03:27 +0100
committerSam James <sam@gentoo.org>2022-12-07 21:29:22 +0000
commit56427a5412c65d71a3440415a11125ed20d58844 (patch)
treeb0b603b3a2b115358aed44461a6d5eead2cb083b /app-editors/bluefish/files/bluefish-2.2.9-fix-incompatible-pointer.patch
parentapp-emacs/company-math: bump to 1.5 (diff)
downloadgentoo-56427a5412c65d71a3440415a11125ed20d58844.tar.gz
gentoo-56427a5412c65d71a3440415a11125ed20d58844.tar.bz2
gentoo-56427a5412c65d71a3440415a11125ed20d58844.zip
app-editors/bluefish: revbump, fix build for clang16
Closes: https://bugs.gentoo.org/882207 Signed-off-by: Pascal Jäger <pascal.jaeger@leimstift.de> Closes: https://github.com/gentoo/gentoo/pull/28589 Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'app-editors/bluefish/files/bluefish-2.2.9-fix-incompatible-pointer.patch')
-rw-r--r--app-editors/bluefish/files/bluefish-2.2.9-fix-incompatible-pointer.patch20
1 files changed, 20 insertions, 0 deletions
diff --git a/app-editors/bluefish/files/bluefish-2.2.9-fix-incompatible-pointer.patch b/app-editors/bluefish/files/bluefish-2.2.9-fix-incompatible-pointer.patch
new file mode 100644
index 000000000000..7cf8900d4f9f
--- /dev/null
+++ b/app-editors/bluefish/files/bluefish-2.2.9-fix-incompatible-pointer.patch
@@ -0,0 +1,20 @@
+Clang16 will not allow to assign incompatible pointer types by default.
+Therefore we need to and const to the third parameter of this function
+to match the pointer XmlHashScanner this function is later assigned to.
+
+Bug: https://bugs.gentoo.org/882207
+Patch has been sent to upstream here: https://sourceforge.net/p/bluefish/tickets/66/
+
+Pascal Jäger <pascal.jaeger@leimstift.de> (2022-12-07)
+
+--- a/src/plugin_infbrowser/infb_dtd.c
++++ b/src/plugin_infbrowser/infb_dtd.c
+@@ -80,7 +80,7 @@ static gchar *infb_dtd_str_content(xmlElementContentPtr ct,gchar *sofar) {
+ return ret;
+ }
+
+-static void infb_dtd_element_to_group(void *payload, void *data, xmlChar *name) {
++static void infb_dtd_element_to_group(void *payload, void *data,const xmlChar *name) {
+ xmlElementPtr el = (xmlElementPtr)payload;
+ switch(name[0]) {
+ case 'a':case 'b':case 'c':case 'd':case 'e':