sip: compile error w/ GCC 14

Phil Thompson phil at riverbankcomputing.com
Mon Dec 4 11:54:53 GMT 2023


On 03/12/2023 18:48, Scott Talbert wrote:
> Hi Phil,
> 
> In GCC 14, my understanding is that incompatible pointer type warnings
> will get turned into errors.  Any chance of getting a fix for this
> one?
> 
> gcc -fno-strict-overflow -Wsign-compare
> -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -fcf-protection -fexceptions
> -fcf-protection -fexceptions -fcf-protection -fexceptions -O2
> -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches
> -pipe -Wall -Werror=format-security
> -Werror=implicit-function-declaration -Werror=implicit-int
> -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS
> -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1
> -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1
> -m64 -mtune=generic -fasynchronous-unwind-tables
> -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer
> -mno-omit-leaf-frame-pointer -fPIC -I/usr/include/python3.12 -c
> siplib.c -o build/temp.linux-x86_64-cpython-312/siplib.o
>   siplib.c: In function ‘parsePass1’:
>   siplib.c:3905:20: warning: assignment to ‘sipSimpleWrapper *’ {aka
> ‘struct _sipSimpleWrapper *’} from incompatible pointer type ‘PyObject
> *’ {aka ‘struct _object *’} [-Wincompatible-pointer-types]
>    3905 |             *selfp = va_arg(va, PyObject *);
>         |                    ^

Done.

Thanks,
Phil


More information about the PyQt mailing list