mirror of
https://git.freebsd.org/ports.git
synced 2025-06-14 09:10:32 -04:00
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
13 lines
438 B
Text
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);
|
|
|