python-qt5-sip/fix-build-gcc14.patch

19 lines
658 B
Diff

From: Phil Thompson <phil@riverbankcomputing.com>
Date: Mon, 4 Dec 2023 11:54:31 +0000
Subject: [PATCH] Removed a warning message (soon to be an error message) in
the v12 module.
Index: PyQt5_sip-12.13.0/siplib.c
===================================================================
--- PyQt5_sip-12.13.0.orig/siplib.c
+++ PyQt5_sip-12.13.0/siplib.c
@@ -3902,7 +3902,7 @@ static int parsePass1(PyObject **parseEr
{
case '#':
/* A ctor has an argument with the /Transfer/ annotation. */
- *selfp = va_arg(va, PyObject *);
+ *selfp = (sipSimpleWrapper *)va_arg(va, PyObject *);
break;
case 'B':