diff options
author | danielk1977 <danielk1977@noemail.net> | 2008-11-19 14:35:46 +0000 |
---|---|---|
committer | danielk1977 <danielk1977@noemail.net> | 2008-11-19 14:35:46 +0000 |
commit | a03396aafbb3e92d8d33126b986e2d0b426989fb (patch) | |
tree | 1e2e2259970152eab4ae73cbaf85ff45806cbe50 /src/os_unix.c | |
parent | c70dfc477fbf99edb2cab9afbd1825724d8a1619 (diff) | |
download | sqlite-a03396aafbb3e92d8d33126b986e2d0b426989fb.tar.gz sqlite-a03396aafbb3e92d8d33126b986e2d0b426989fb.zip |
Fix a few more compiler warnings. (CVS 5926)
FossilOrigin-Name: 70b2f6839ca97dfc08f72875283f5c75c8fcf0cc
Diffstat (limited to 'src/os_unix.c')
-rw-r--r-- | src/os_unix.c | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/src/os_unix.c b/src/os_unix.c index e28cda5d6..867ec96b3 100644 --- a/src/os_unix.c +++ b/src/os_unix.c @@ -12,7 +12,7 @@ ** ** This file contains code that is specific to Unix systems. ** -** $Id: os_unix.c,v 1.214 2008/11/19 13:52:30 danielk1977 Exp $ +** $Id: os_unix.c,v 1.215 2008/11/19 14:35:47 danielk1977 Exp $ */ #include "sqliteInt.h" #if SQLITE_OS_UNIX /* This file is used on unix only */ @@ -2758,6 +2758,13 @@ static int fillInUnixFile( assert( pNew->pLock==NULL ); assert( pNew->pOpen==NULL ); + /* Parameter isDelete is only used on vxworks. Parameter pVfs is only + ** used if ENABLE_LOCKING_STYLE is defined. Express this explicitly + ** here to prevent compiler warnings about unused parameters. + */ + if( IS_VXWORKS ) UNUSED_PARAMETER(isDelete); + if( SQLITE_ENABLE_LOCKING_STYLE ) UNUSED_PARAMETER(pVfs); + OSTRACE3("OPEN %-3d %s\n", h, zFilename); pNew->h = h; pNew->dirfd = dirfd; @@ -2881,9 +2888,7 @@ static int fillInUnixFile( } #endif -#if !IS_VXWORKS case LOCKING_STYLE_FLOCK: -#endif case LOCKING_STYLE_NONE: break; #endif |