aboutsummaryrefslogtreecommitdiff
path: root/src/os_unix.c
diff options
context:
space:
mode:
authordrh <drh@noemail.net>2011-04-01 13:29:29 +0000
committerdrh <drh@noemail.net>2011-04-01 13:29:29 +0000
commit026663d305681a94b90748a9a76988fab2dc6087 (patch)
treec03de31612f53c3cd354882059af15d5667b354d /src/os_unix.c
parentea83bc614eb05ac266e0375f883169d677fd52d1 (diff)
downloadsqlite-026663d305681a94b90748a9a76988fab2dc6087.tar.gz
sqlite-026663d305681a94b90748a9a76988fab2dc6087.zip
Move a variable declaration inside an #ifdef to avoid a compiler warning.
FossilOrigin-Name: 7a6d05dfbc36310683dd51a280e9283cef4f9056
Diffstat (limited to 'src/os_unix.c')
-rw-r--r--src/os_unix.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/os_unix.c b/src/os_unix.c
index 6f9335111..f04b6af27 100644
--- a/src/os_unix.c
+++ b/src/os_unix.c
@@ -1539,7 +1539,6 @@ static int posixUnlock(sqlite3_file *id, int eFileLock, int handleNFSUnlock){
struct flock lock;
int rc = SQLITE_OK;
int h;
- int tErrno; /* Error code from system call errors */
assert( pFile );
OSTRACE(("UNLOCK %d %d was %d(%d,%d) pid=%d (unix)\n", pFile->h, eFileLock,
@@ -1594,6 +1593,7 @@ static int posixUnlock(sqlite3_file *id, int eFileLock, int handleNFSUnlock){
#endif
#if defined(__APPLE__) && SQLITE_ENABLE_LOCKING_STYLE
if( handleNFSUnlock ){
+ int tErrno; /* Error code from system call errors */
off_t divSize = SHARED_SIZE - 1;
lock.l_type = F_UNLCK;