ports/devel/py-pykde4/files/patch-sip_solid_powermanagement.sip
Tobias C. Berner 95508ac672 Fix py-pykde4 against newest clang
PyList_SET_ITEM() is supposed to be void, but as a macro it's an
expression and has a pointer value. Clang 4.0 trips on the bogus
pointer comparison; given the comparison, it should be PyList_SetItem()
which returns -1 on failure.

As the produced code may be changed by this, bump PORTREVISION.

PR:		216253
Submitted by:	Adriaan de Groot <groot@kde.org>
Reported by:	jbeich
Reviewed by:	rakuco, tcberner
Approved by:	rakuco (mentor)
Differential Revision:	https://reviews.freebsd.org/D9253
2017-01-20 12:20:14 +00:00

13 lines
438 B
Text

See patch-sip_phonon_abstractvideodataoutput.sip
--- sip/solid/powermanagement.sip.orig 2014-08-14 20:17:11 UTC
+++ sip/solid/powermanagement.sip
@@ -83,7 +83,7 @@ bool stopSuppressingS
#else
PyObject *obj = PyInt_FromLong ((long) value);
#endif
- if (obj == NULL || PyList_SET_ITEM (l, i, obj) < 0)
+ if (obj == NULL || PyList_SetItem (l, i, obj) < 0)
{
Py_DECREF(l);