drufat / triangle

Python bindings to the triangle library
GNU Lesser General Public License v3.0
229 stars 53 forks source link

triangle/core.c:19390:5: error: lvalue required as increment operand #59

Closed carlosal1015 closed 2 years ago

carlosal1015 commented 2 years ago

Hi, with python3.10, cython 0.29.26 and gcc compiler 11 and flags

gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -march=x86-64 -mtune=generic -O3 -pipe -fno-plt -march=x86-64 -mtune=generic -O3 -pipe -fno-plt -march=x86-64 -mtune=generic -O3 -pipe -fno-plt -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -fPIC -DVOID=void -DREAL=double -DNO_TIMER=1 -DTRILIBRARY=1 -DANSI_DECLARATORS=1 -Ic -I/usr/include/python3.10 -c c/triangle.c -o build/temp.linux-x86_64-3.10/c/triangle.o

we have the minimal errors

triangle/core.c: In function ‘__pyx_tp_dealloc_array’:
triangle/core.c:19390:5: error: lvalue required as increment operand
19390 |     ++Py_REFCNT(o);
      |     ^~
triangle/core.c:19392:5: error: lvalue required as decrement operand
19392 |     --Py_REFCNT(o);
      |     ^~
triangle/core.c: In function ‘__pyx_tp_dealloc_memoryview’:
triangle/core.c:19701:5: error: lvalue required as increment operand
19701 |     ++Py_REFCNT(o);
      |     ^~
triangle/core.c:19703:5: error: lvalue required as decrement operand
19703 |     --Py_REFCNT(o);
      |     ^~
triangle/core.c: In function ‘__pyx_tp_dealloc__memoryviewslice’:
triangle/core.c:19951:5: error: lvalue required as increment operand
19951 |     ++Py_REFCNT(o);
      |     ^~
triangle/core.c:19953:5: error: lvalue required as decrement operand
19953 |     --Py_REFCNT(o);

no errors reported with python 3.9 and the same gcc version.

carlosal1015 commented 2 years ago

Thanks for the new release, is fixed now from Arch Linux side.