[GRASS-dev] GRASS 7 swig compile warnings and errors
Glynn Clements
glynn at gclements.plus.com
Mon Jan 19 06:37:58 EST 2009
Markus Neteler wrote:
> >> I get warnings and errors in swig/python/:
> >
> >> grass_wrap.c: In function '_wrap_G_vasprintf':
> >> grass_wrap.c:18166: error: incompatible types in assignment
> >
> > No idea what's causing this. For me, line 18166 is:
> >
> > arg3 = *((va_list *)(argp3));
> >
> > with arg3 defined as:
> >
> > va_list arg3 ;
> >
> > The others are just warnings.
>
> I have
>
> if (!argp3) {
> SWIG_exception_fail(SWIG_ValueError, "invalid null reference "
> "in method '" "G_vasprintf" "', argument " "3"" of type '"
> "va_list""'");
> } else {
> arg3 = *((va_list *)(argp3));
> }
What does the declaration of arg3 look like?
--
Glynn Clements <glynn at gclements.plus.com>
More information about the grass-dev
mailing list