[Qt4-preview-feedback] 4.4.1 snapshot 20080524 on (Open)Solaris
Thiago Macieira
thiago.macieira at trolltech.com
Mon May 26 11:55:11 CEST 2008
On Saturday 24 May 2008 22:12:01 Paul Floyd wrote:
> 5. OpenSolaris x86 (SXCE 89), Sun Studio Express, stlport build
>
> "../../../3rdparty/kdebase/runtime/phonon/gstreamer/artssink.cpp", line
> 83: Warning (Anachronism): Formal argument class_init of type extern "C"
> void(*)(void*,void*) in call to gst_type_register_static_full(unsigned
> long, const char*, unsigned, extern "C" void(*)(void*), extern "C"
> void(*)(void*), extern "C" void(*)(void*,void*), extern "C"
> void(*)(void*,void*), const void*, unsigned, unsigned short, extern "C"
> void(*)(_GTypeInstance*,void*), const _GTypeValueTable*, GTypeFlags) is
> being passed void(*)(void*,void*).
> "../../../3rdparty/kdebase/runtime/phonon/gstreamer/artssink.cpp", line
> 90: Warning: Identifier expected instead of "}".
> "../../../3rdparty/kdebase/runtime/phonon/gstreamer/artssink.cpp", line
> 99: Error: __func__ is not defined.
>
> __func__ is a C99 keyword
Investigating this one case, it appears that this is a gstreamer problem.
The line in artssink.cpp uses the gstreamer macro GST_ELEMENT_ERROR, which in
turn uses the GST_FUNCTION macro, which is defined like this in
gst/gstinfo.h:
#if defined (__GNUC__)
# define GST_FUNCTION ((const char*) (__FUNCTION__))
#elif defined (G_HAVE_ISO_VARARGS)
# define GST_FUNCTION ((const char*) (__func__))
#else
# define GST_FUNCTION ((const char*) ("???"))
#endif
Which references the glibconfig.h macro:
#ifndef __cplusplus
# define G_HAVE_ISO_VARARGS 1
#endif
Conclusion: the gstreamer test is bogus in gstinfo.h. The fix should be
applied to gstreamer sources then.
Jens, can you report the issue to the gstreamer developers?
--
Thiago José Macieira - thiago.macieira AT trolltech.com
Trolltech ASA - Sandakerveien 116, NO-0402 Oslo, Norway
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part.
Url : http://lists.trolltech.com/pipermail/qt4-preview-feedback/attachments/20080526/27312a25/attachment.bin
More information about the Qt4-preview-feedback
mailing list