Ignored return values

Claudia Moroder claudiamoroder at st-ulrich.suedtirol.net
Wed Apr 10 09:42:02 GMT 2002


Hello Simo,

this is only the first file. What about if the main developers would give a
try to splint.
It does give many warnings that can be ignored or even disabled, but many of
them are usefull.

Bye
Andreas

-----Ursprüngliche Nachricht-----
Von: "Simo Sorce" <idra at samba.org>
An: "andreas moroder" <claudiamoroder at st-ulrich.suedtirol.net>
Cc: <samba-technical at samba.org>
Gesendet: Mittwoch, 10. April 2002 02:15
Betreff: Re: Ignored return values


> thanks andreas I'll look to them asap.
>
> On Tue, 2002-04-09 at 20:52, andreas moroder wrote:
> > Hello Simo,
> >
> > it looks good for the start, but ... now you have even more ignored
return
> > values derived from the functions you changed from void to int.
> > t looks like I opened pandorra's box.
> >
> > Bye
> > Andreas
> >
> > Here the new list:
> >
> > tdb/tdb.c:309:2: Return value (type int) ignored: tdb_munmap(tdb)
> > tdb/tdb.c:367:10: Returned storage buf not completely defined (*buf is
> > tdb/tdb.c:483:3: Return value (type int) ignored: tdb_dump_chain(t...
> > tdb/tdb.c:486:2: Return value (type int) ignored: tdb_dump_chain(t...
> > tdb/tdb.c:633:2: Return value (type int) ignored: tdb_unlock(tdb, ...
> > tdb/tdb.c:637:2: Return value (type int) ignored: tdb_unlock(tdb, ...
> > tdb/tdb.c:706:2: Return value (type int) ignored: tdb_oob(tdb, tdb...
> > tdb/tdb.c:713:3: Return value (type int) ignored: tdb_munmap(tdb)
> > tdb/tdb.c:751:2: Return value (type int) ignored: tdb_unlock(tdb, ...
> > tdb/tdb.c:754:2: Return value (type int) ignored: tdb_unlock(tdb, ...
> > tdb/tdb.c:829:4: Return value (type int) ignored: tdb_unlock(tdb, ...
> > tdb/tdb.c:841:2: Return value (type int) ignored: tdb_unlock(tdb, ...
> > tdb/tdb.c:923:9: Return value type int does not match declared type
tdb_off:
> > tdb/tdb.c:950:3: Return value (type int) ignored: tdb_unlock(tdb, ...
> > tdb/tdb.c:1011:2: Return value (type int) ignored: tdb_unlock(tdb, ...
> > tdb/tdb.c:1029:2: Return value (type int) ignored: tdb_unlock(tdb, ...
> > tdb/tdb.c:1045:2: Return value (type int) ignored: tdb_unlock(tdb, ...
> > tdb/tdb.c:1169:12: Return value type unsigned int does not match
declared type
> > tdb/tdb.c:1177:3: Return value (type int) ignored: tdb_unlock(tdb, ...
> > tdb/tdb.c:1328:13: Returned storage key.dptr not completely defined
(key.dptr
> > tdb/tdb.c:1386:3: Return value (type int) ignored: tdb_delete(tdb, key)
> > tdb/tdb.c:1423:2: Return value (type int) ignored: tdb_unlock(tdb, ...
> > tdb/tdb.c:1618:4: Return value (type int) ignored: tdb_munmap(tdb)
> > tdb/tdb.c:1641:4: Return value (type int) ignored: tdb_munmap(tdb)
> > tdb/tdb.c:1682:4: Return value (type int) ignored: tdb_unlock(tdb, ...
> > tdb/tdb.c:1692:3: Return value (type int) ignored: tdb_unlock(tdb, ...
> > tdb/tdb.c:1722:4: Return value (type int) ignored: tdb_unlock(tdb, ...
> > tdb/tdb.c:1734:3: Return value (type int) ignored: tdb_unlock(tdb, ...
> > tdb/tdb.c:1792:2: Return value (type int) ignored: tdb_close(tdb)
> >
> --
> Simo Sorce
> ----------
> Una scelta di liberta': Software Libero.
> A choice of freedom: Free Software.
> http://www.softwarelibero.it





More information about the samba-technical mailing list