From: Jeremy Allison Date: Thu, 6 Aug 2009 18:47:08 +0000 (-0700) Subject: Add define guards around otherwise unused variable. X-Git-Tag: talloc-2.0.0~464^2~45 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=4fc9f9c3f943cdeb27e37f0ee068cdd0da7cb00c;p=thirdparty%2Fsamba.git Add define guards around otherwise unused variable. Jeremy. --- diff --git a/lib/tdb/common/open.c b/lib/tdb/common/open.c index 2dcdd4bde74..2e6a707497b 100644 --- a/lib/tdb/common/open.c +++ b/lib/tdb/common/open.c @@ -407,7 +407,10 @@ void *tdb_get_logging_private(struct tdb_context *tdb) static int tdb_reopen_internal(struct tdb_context *tdb, bool active_lock) { +#if !defined(LIBREPLACE_PREAD_NOT_REPLACED) || \ + !defined(LIBREPLACE_PWRITE_NOT_REPLACED) struct stat st; +#endif if (tdb->flags & TDB_INTERNAL) { return 0; /* Nothing to do. */