Re: GValue won't init inside hidden functions



On Tue, Jun 27, 2006 at 08:33:55PM -0400, Philip Kovacs wrote:
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.

Please provide a code sample.

Anyway my guess is the GValue is not initially zero-filled.

Yeti


--
Anonyms eat their boogers.



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