diff options
author | drh <drh@noemail.net> | 2011-10-15 00:16:30 +0000 |
---|---|---|
committer | drh <drh@noemail.net> | 2011-10-15 00:16:30 +0000 |
commit | 30ddce6ff427a2757cfca3ba1204a16937a6e293 (patch) | |
tree | a8d9af6dcf4049994c02b390b0f5e8ad2b56272c /src/backup.c | |
parent | 086e4913b5e0a959c50ee9ab135a22b7a23f479f (diff) | |
download | sqlite-30ddce6ff427a2757cfca3ba1204a16937a6e293.tar.gz sqlite-30ddce6ff427a2757cfca3ba1204a16937a6e293.zip |
Added the tool/warnings-clang.sh script. Changes so that there are no
warnings with either gcc or clang even including FTS4 and RTREE and
both with and without SQLITE_THREADSAFE=0.
FossilOrigin-Name: 39408702a989f907261c298bf0947f3e68bd10fe
Diffstat (limited to 'src/backup.c')
-rw-r--r-- | src/backup.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/backup.c b/src/backup.c index 411a9b8d6..893a40e4d 100644 --- a/src/backup.c +++ b/src/backup.c @@ -543,14 +543,14 @@ int sqlite3_backup_step(sqlite3_backup *p, int nPage){ */ int sqlite3_backup_finish(sqlite3_backup *p){ sqlite3_backup **pp; /* Ptr to head of pagers backup list */ - sqlite3_mutex *mutex; /* Mutex to protect source database */ + MUTEX_LOGIC( sqlite3_mutex *mutex; ) /* Mutex to protect source database */ int rc; /* Value to return */ /* Enter the mutexes */ if( p==0 ) return SQLITE_OK; sqlite3_mutex_enter(p->pSrcDb->mutex); sqlite3BtreeEnter(p->pSrc); - mutex = p->pSrcDb->mutex; + MUTEX_LOGIC( mutex = p->pSrcDb->mutex; ) if( p->pDestDb ){ sqlite3_mutex_enter(p->pDestDb->mutex); } |