mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-23 10:11:08 +00:00
gst/gstplugin.h: Cast description string constants in GST_PLUGIN_DEFINE macros to a (gchar*) to make C++ code using t...
Original commit message from CVS: * gst/gstplugin.h: Cast description string constants in GST_PLUGIN_DEFINE macros to a (gchar*) to make C++ code using these macros compile without warning with g++-4.2 (see #462737). Even if slightly ugly, this seems preferable to putting the description strings into the GLib quark table or making the structure member a const gchar * and doing casts in core code that allocs and frees these strings, or requiring a cast in the C++ code.
This commit is contained in:
parent
a639f7abfc
commit
46283255e4
2 changed files with 13 additions and 2 deletions
11
ChangeLog
11
ChangeLog
|
@ -1,3 +1,14 @@
|
||||||
|
2007-10-10 Tim-Philipp Müller <tim at centricular dot net>
|
||||||
|
|
||||||
|
* gst/gstplugin.h:
|
||||||
|
Cast description string constants in GST_PLUGIN_DEFINE macros
|
||||||
|
to a (gchar*) to make C++ code using these macros compile
|
||||||
|
without warning with g++-4.2 (see #462737). Even if slightly
|
||||||
|
ugly, this seems preferable to putting the description strings
|
||||||
|
into the GLib quark table or making the structure member a
|
||||||
|
const gchar * and doing casts in core code that allocs and
|
||||||
|
frees these strings, or requiring a cast in the C++ code.
|
||||||
|
|
||||||
2007-10-09 Tim-Philipp Müller <tim at centricular dot net>
|
2007-10-09 Tim-Philipp Müller <tim at centricular dot net>
|
||||||
|
|
||||||
* gst/gstinfo.h:
|
* gst/gstinfo.h:
|
||||||
|
|
|
@ -187,7 +187,7 @@ GST_PLUGIN_EXPORT GstPluginDesc gst_plugin_desc = { \
|
||||||
major, \
|
major, \
|
||||||
minor, \
|
minor, \
|
||||||
name, \
|
name, \
|
||||||
description, \
|
(gchar *) description, \
|
||||||
init, \
|
init, \
|
||||||
version, \
|
version, \
|
||||||
license, \
|
license, \
|
||||||
|
@ -221,7 +221,7 @@ _gst_plugin_static_init__ ##init (void) \
|
||||||
major, \
|
major, \
|
||||||
minor, \
|
minor, \
|
||||||
name, \
|
name, \
|
||||||
description, \
|
(gchar *) description, \
|
||||||
init, \
|
init, \
|
||||||
version, \
|
version, \
|
||||||
license, \
|
license, \
|
||||||
|
|
Loading…
Reference in a new issue