[GRASS-dev] GRASS 7 swig compile warnings and errors
Markus Neteler
neteler at osgeo.org
Sun Jan 18 03:30:34 EST 2009
On Sun, Jan 18, 2009 at 8:11 AM, Glynn Clements
<glynn at gclements.plus.com> wrote:
>
> 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));
}
but it gives:
gcc -I/home/neteler/grass70/dist.x86_64-unknown-linux-gnu/include -g
-Wall -fno-common -mtune=nocona -m64 -minline-all-stringops -fPIC
-I/usr/include/python2.5 -I/usr/include/python2.5
-DPACKAGE=\""grasslibs"\"
-I/home/neteler/grass70/dist.x86_64-unknown-linux-gnu/include -o
OBJ.x86_64-unknown-linux-gnu/grass_wrap.o -c grass_wrap.c
grass_wrap.c: In function '_wrap_G_vasprintf':
grass_wrap.c:18164: error: incompatible types in assignment
>> Looking around grass_wrap.c:2620
>
>> fprintf(stderr, "sequence length is %d\n", len);
>
> That's debug code, which I have removed (r35480).
Ok, this part now compiles.
Markus
More information about the grass-dev
mailing list