[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
Re: Openldap 2.0.14 compilation warning (IRIX)
> >
> > 1)
> >
> >
> > echo timestamp > cache.lo
> > /bin/sh /usr/local/src/openldap-2.0.14/libtool --only-static
> > --mode=compile cc -g -I../..
> > /../include -I../../../include -I.. -I./.. -I/usr/local/ssl/include
> > -I/usr/local/include -c dbcache.c
> > cc -g -I../../../include -I../../../include -I.. -I./..
> > -I/usr/local/ssl/include -I/usr/local/inc
> > lude -c dbcache.c -o dbcache.o
> > cc-1551 cc: WARNING File = dbcache.c, Line = 329
> > The variable "data" is used before its value is set.
> >
>
> There was one line missing from message:
>
> echo timestamp > cache.lo
> /bin/sh /usr/local/src/openldap-2.0.14/libtool --only-static
> --mode=comp
> ile cc -g -I../../../include -I../../../include -I.. -I./..
> -I/usr/local
> /ssl/include -I/usr/local/include -c dbcache.c
> cc -g -I../../../include -I../../../include -I.. -I./..
> -I/usr/local/ssl/include
> -I/usr/local/include -c dbcache.c -o dbcache.o
> cc-1551 cc: WARNING File = dbcache.c, Line = 329
> The variable "data" is used before its value is set.
>
> return( data );
^
If I looked directroy and file correctly, looks like that is just
unreachable code:
Datum
ldbm_cache_fetch(
DBCache *db,
Datum key
)
{
Datum data;
return ldbm_fetch( db->dbc_db, key );
return( data );
}
> > 2)
> >
> > echo timestamp > alias.lo
> > /bin/sh /usr/local/src/openldap-2.0.14/libtool --only-static
> > --mode=compile cc -g -I../../../include -I../../../include -I..
> > -I./.. -I/usr/local/ssl/include -I/usr/local/include
> > -c tools.c
> > cc -g -I../../../include -I../../../include -I.. -I./..
> > -I/usr/local/ssl/include -I/usr/local/include -c tools.c -o tools.o
> > cc-1551 cc: WARNING File = tools.c, Line = 106
> > The variable "key" is used before its value is set.
> >
> > key = ldbm_nextkey( id2entry->dbc_db, key, cursorp );
> > ^
Is this following code ?
ID ldbm_tool_entry_next(
BackendDB *be )
{
Datum key;
ID id;
assert( slapMode & SLAP_TOOL_MODE );
assert( id2entry != NULL );
/* allow for NEXTID */
ldbm_datum_init( key );
key = ldbm_nextkey( id2entry->dbc_db, key, cursorp );
--
/"\ | Kari
\ / ASCII Ribbon Campaign | Hurtta
X Against HTML Mail |
/ \ |