Re: [PATCH] RFC: adding a #define G_VALUE_INIT for initializing GValue on the stack



Hi,

On Fri, 2009-03-27 at 15:45 -0400, Andrew Paprocki wrote:
> On Fri, Mar 27, 2009 at 1:47 PM, Andrew Paprocki <andrew ishiboo com> wrote:
> > I checked gvalue.h and I don't see a #define in there containing the
> > proper initializer list for a GValue to prevent gcc warnings. Rather
> > than duplicating "GValue v = {0, {{0}}};" everywhere, I'd like the
> > following to be added:
> >
> > #define G_VALUE_INIT {0,{{0}}}

Sounds like a good idea to me.

> I've attached a patch for easy reference.

I suggest you open an enhancement request for this at bugzilla.gnome.org
and attach your patch there.


Sven




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