gst/gstplugin.h: Cast description string constants in GST_PLUGIN_DEFINE macros to...
authorTim-Philipp Müller <tim@centricular.net>
Wed, 10 Oct 2007 10:53:39 +0000 (10:53 +0000)
committerTim-Philipp Müller <tim@centricular.net>
Wed, 10 Oct 2007 10:53:39 +0000 (10:53 +0000)
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.

ChangeLog
gst/gstplugin.h

index 9c68c4a..fd62684 100644 (file)
--- a/ChangeLog
+++ b/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:
index cfc28f6..93bc9b7 100644 (file)
@@ -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,                                           \