Bug#604738: libglib2.0-dev: defined function throw away constness, causing warnings from compiler

Josselin Mouette joss at debian.org
Wed Nov 24 09:19:13 UTC 2010


Le mardi 23 novembre 2010 à 23:32 +0100, Petter Reinholdtsen a écrit :
> When building gnash, some compiler warning like this show up when
> building in Squeeze:
> 
>   gst/VideoInputGst.cpp:492: warning: cast from type 'const GValue*'
>     to type 'GValue*' casts away constness

> The cause is this code in /usr/include/glib-2.0/gobject/gtype.h:
> 
>   #define _G_TYPE_CVH(vl, gt) (g_type_check_value_holds ((GValue*) vl, gt))
> 
> It is throwing away the constness of the vl argument.  Given that it
> only read the value content, it would be better if it cast to (const
> GValue *) instead.

I see how this is a bug, but would you be kind enough to forward this
upstream? I doubt I’d add much value by playing carrier between you and
them if they disagree with your interpretation.

Thanks,
-- 
 .''`.
: :' :     “You would need to ask a lawyer if you don't know
`. `'       that a handshake of course makes a valid contract.”
  `-        --  J???rg Schilling







More information about the pkg-gnome-maintainers mailing list