1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-11-18 10:21:03 +03:00

remove warning in os2Sync() with SQLITE_NO_SYNC set (CVS 5962)

FossilOrigin-Name: 68a51f67afd54f1c423206a92b36a33af071d5e1
This commit is contained in:
pweilbacher
2008-11-26 20:03:21 +00:00
parent efdabe9e64
commit d102d1134b
3 changed files with 9 additions and 8 deletions

View File

@@ -12,7 +12,7 @@
**
** This file contains code that is specific to OS/2.
**
** $Id: os_os2.c,v 1.61 2008/11/26 19:56:48 pweilbacher Exp $
** $Id: os_os2.c,v 1.62 2008/11/26 20:03:21 pweilbacher Exp $
*/
#include "sqliteInt.h"
@@ -200,6 +200,7 @@ static int os2Sync( sqlite3_file *id, int flags ){
** no-op
*/
#ifdef SQLITE_NO_SYNC
UNUSED_PARAMETER(pFile);
return SQLITE_OK;
#else
return DosResetBuffer( pFile->h ) == NO_ERROR ? SQLITE_OK : SQLITE_IOERR;