GValue won't init inside hidden functions



I am using glib 2.10.3 at the moment with  gcc 3.4.6 and glibc 2.3.6.

I have noticed that issuing a g_value_init() on a GValue produces the error:

GLib-GObject-WARNING **: gvalue.c:89: cannot initialize GValue with type `gpointer', the value has already been initialized as `(null)'

whenever the function does not have external visibility, i.e. is defined either as 'static'
or with the attribute G_GNUC_INTERNAL.

I use these hidden functions extensively when writing libraries. I believe libraries should export only what the client needs to see, not the internal "helper" functions.

Any comments on this behavior?  I use a great many of the glib data types
with no problem at all within hidden/internal functions. GValue is problematic.

Phil



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]