[Monetdb-developers] M5 strict and optimized compilation...

Romulo Goncalves R.A.Goncalves at cwi.nl
Mon Jun 11 12:22:55 CEST 2007


During the compilation I got the following error:

cc1: warnings being treated as errors
/ufs/goncalve/MonetDB/MonetDB5/src/modules/mal/bpm.mx: In function 
'BPMadapt':
/ufs/goncalve/MonetDB/MonetDB5/src/modules/mal/bpm.mx:1587: warning: 
'vp' may be used uninitialized in this function
make[7]: *** [lib_bpm_la-bpm.lo] Error 1
make[7]: Leaving directory 
`/net/amelia/export/scratch1/goncalve/MonetDB/Stable/MonetDB5/build/src/modules/mal'

The function head is here:

static str
BPMadaptImpl(int *ret, bat *bid, ptr low, ptr hgh, bat *rs, int policy )
{
         BAT *b,*bs, *bs1, *bs2;
         Partition ps, p, p2;
         int (*cmp) (ptr, ptr);
         ptr nilptr;
         ValPtr vp;

Can I initialize it to NULL? If someone disagree please fix it with the 
correct value.

Regards,
Romulo




More information about the developers-list mailing list