mirror of
https://github.com/sqlite/sqlite.git
synced 2025-11-12 13:01:09 +03:00
Suppress some -Wextra compiler warnings from GCC. (CVS 6774)
FossilOrigin-Name: 59ec937ce226bbf6c48c5e0466d3bab48873c9ea
This commit is contained in:
@@ -43,7 +43,7 @@
|
||||
** * Definitions of sqlite3_vfs objects for all locking methods
|
||||
** plus implementations of sqlite3_os_init() and sqlite3_os_end().
|
||||
**
|
||||
** $Id: os_unix.c,v 1.252 2009/06/15 20:45:35 drh Exp $
|
||||
** $Id: os_unix.c,v 1.253 2009/06/17 13:09:39 drh Exp $
|
||||
*/
|
||||
#include "sqliteInt.h"
|
||||
#if SQLITE_OS_UNIX /* This file is used on unix only */
|
||||
@@ -911,7 +911,7 @@ static int findLockInfo(
|
||||
struct unixLockKey lockKey; /* Lookup key for the unixLockInfo structure */
|
||||
struct unixFileId fileId; /* Lookup key for the unixOpenCnt struct */
|
||||
struct stat statbuf; /* Low-level file information */
|
||||
struct unixLockInfo *pLock; /* Candidate unixLockInfo object */
|
||||
struct unixLockInfo *pLock = 0;/* Candidate unixLockInfo object */
|
||||
struct unixOpenCnt *pOpen; /* Candidate unixOpenCnt object */
|
||||
|
||||
/* Get low-level information about the file that we can used to
|
||||
@@ -1815,7 +1815,8 @@ static int dotlockUnlock(sqlite3_file *id, int locktype) {
|
||||
/* To fully unlock the database, delete the lock file */
|
||||
assert( locktype==NO_LOCK );
|
||||
if( unlink(zLockFile) ){
|
||||
int rc, tErrno = errno;
|
||||
int rc = 0;
|
||||
int tErrno = errno;
|
||||
if( ENOENT != tErrno ){
|
||||
rc = sqliteErrorFromPosixError(tErrno, SQLITE_IOERR_UNLOCK);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user