mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-23 02:01:12 +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>
|
||||
|
||||
* gst/gstinfo.h:
|
||||
|
|
|
@ -187,7 +187,7 @@ GST_PLUGIN_EXPORT GstPluginDesc gst_plugin_desc = { \
|
|||
major, \
|
||||
minor, \
|
||||
name, \
|
||||
description, \
|
||||
(gchar *) description, \
|
||||
init, \
|
||||
version, \
|
||||
license, \
|
||||
|
@ -221,7 +221,7 @@ _gst_plugin_static_init__ ##init (void) \
|
|||
major, \
|
||||
minor, \
|
||||
name, \
|
||||
description, \
|
||||
(gchar *) description, \
|
||||
init, \
|
||||
version, \
|
||||
license, \
|
||||
|
|
Loading…
Reference in a new issue