gst/gstutils.h: Try to fix 'dereferencing type-punned pointer will break strict alias...
authorTim-Philipp Müller <tim@centricular.net>
Fri, 9 May 2008 18:25:44 +0000 (18:25 +0000)
committerTim-Philipp Müller <tim@centricular.net>
Fri, 9 May 2008 18:25:44 +0000 (18:25 +0000)
commit7c0437a9da8a0f6d2747d276ed27940d177ac8a2
tree67943f26a089f18f14901008bf20b3c1bc4a3618
parent4fa54750f68ccac4f0a26d51b6a2ab98f47a1815
gst/gstutils.h: Try to fix 'dereferencing type-punned pointer will break strict aliasing rules' warnings with C++ com...

Original commit message from CVS:
* gst/gstutils.h: (GST_BOILERPLATE_FULL):
Try to fix 'dereferencing type-punned pointer will break strict
aliasing rules' warnings with C++ compilers and GLib >= 2.14.0: GLib
changed the default GType typedef from gulong to gsize at some point,
but kept GType typedef'ed to gulong for C++ for ABI reasons; the
g_once_* functions all take a gsize * though, so work around the type
mismatch for C++ by doing everything in gsize and casting to GType
later.
ChangeLog
gst/gstutils.h