diff options
author | Jeremy Allison <jra@samba.org> | 2011-11-21 13:06:00 -0800 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2011-11-21 23:39:08 +0100 |
commit | 3e6e1aed949a4483fc38607e443b5c8b715aca3b (patch) | |
tree | 631d089cbae788cd8c68442774bdc6720dbc07ab /lib/tdb | |
parent | aa2e415442fe121a3db5fa79e53ad732d78e9572 (diff) | |
download | samba-3e6e1aed949a4483fc38607e443b5c8b715aca3b.tar.gz samba-3e6e1aed949a4483fc38607e443b5c8b715aca3b.tar.bz2 samba-3e6e1aed949a4483fc38607e443b5c8b715aca3b.zip |
Fix a bunch of "warning: variable ‘XXXX’ set but not used [-Wunused-but-set-variable]" warnings from the new gcc.
Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Mon Nov 21 23:39:08 CET 2011 on sn-devel-104
Diffstat (limited to 'lib/tdb')
-rw-r--r-- | lib/tdb/tools/tdbtool.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/tdb/tools/tdbtool.c b/lib/tdb/tools/tdbtool.c index 99d4841cf3..d4b85dcdb1 100644 --- a/lib/tdb/tools/tdbtool.c +++ b/lib/tdb/tools/tdbtool.c @@ -448,11 +448,9 @@ static void speed_tdb(const char *tlimit) _start_timer(); do { long int r = random(); - TDB_DATA key, dbuf; + TDB_DATA key; key.dptr = discard_const_p(uint8_t, str); key.dsize = strlen((char *)key.dptr); - dbuf.dptr = (uint8_t *) &r; - dbuf.dsize = sizeof(r); tdb_fetch(tdb, key); t = _end_timer(); ops++; |