summaryrefslogtreecommitdiff
path: root/source3/lib
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2012-04-18 14:23:06 +0200
committerVolker Lendecke <vl@samba.org>2012-04-18 18:16:27 +0200
commit0021fc17e4660eee8df98c5a5810a55e5e5effee (patch)
tree7de76c15a7b59364e9c7a63ba2be15168ee81c05 /source3/lib
parent2085c20bb123edb50098a11c22c103269d2f4fd9 (diff)
downloadsamba-0021fc17e4660eee8df98c5a5810a55e5e5effee.tar.gz
samba-0021fc17e4660eee8df98c5a5810a55e5e5effee.tar.bz2
samba-0021fc17e4660eee8df98c5a5810a55e5e5effee.zip
s3-dbwrap: Fix an unused var warning
Diffstat (limited to 'source3/lib')
-rw-r--r--source3/lib/dbwrap/dbwrap_ctdb.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source3/lib/dbwrap/dbwrap_ctdb.c b/source3/lib/dbwrap/dbwrap_ctdb.c
index fe2af3609c..3d08d1c86f 100644
--- a/source3/lib/dbwrap/dbwrap_ctdb.c
+++ b/source3/lib/dbwrap/dbwrap_ctdb.c
@@ -1004,7 +1004,9 @@ static int db_ctdb_record_destr(struct db_record* data)
/* Do I own this record? */
static bool db_ctdb_own_record(TDB_DATA ctdb_data, bool read_only)
{
+#ifdef HAVE_CTDB_WANT_READONLY_DECL
struct ctdb_ltdb_header *hdr;
+#endif
if (ctdb_data.dptr == NULL)
return false;