1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-14 03:10:47 +00:00
freebsd-ports/devel/py-pykde4-kde4/files/patch-sip_phonon_abstractvideodataoutput.sip
Tobias C. Berner a4a7daf069 Give the KDE SC4 applications ports a -kde4 suffix
In order to make room for the up-to-date version of the KDE Desktop and its
applications move the KDE Application ports based on Qt4.

PR:		225992
Exp-run by:	antoine
Reviewed by:	rakuco, adridg
Differential Revision:	https://reviews.freebsd.org/D14413
2018-02-22 19:03:17 +00:00

17 lines
669 B
Plaintext

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.
--- sip/phonon/abstractvideodataoutput.sip.orig 2014-08-14 20:17:11 UTC
+++ sip/phonon/abstractvideodataoutput.sip
@@ -72,7 +72,7 @@ protected:
foreach (Phonon::Experimental::VideoFrame2::Format value, set)
{
PyObject *obj = PyInt_FromLong ((long) value);
- if (obj == NULL || PyList_SET_ITEM (l, i, obj) < 0)
+ if (obj == NULL || PyList_SetItem (l, i, obj) < 0)
{
Py_DECREF(l);