SQLite

Check-in [cab46fb737]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Fix harmless compiler warning.
Downloads: Tarball | ZIP archive
Timelines: family | ancestors | descendants | both | msvcWarn
Files: files | file ages | folders
SHA1: cab46fb737ed3fc29dc8517f07bcfc72936df2b8
User & Date: mistachkin 2015-01-16 19:35:45.500
Context
2015-01-17
15:26
Fix a harmless compiler warning the VFS for Windows. (check-in: ceac571f53 user: drh tags: trunk)
2015-01-16
19:35
Fix harmless compiler warning. (Closed-Leaf check-in: cab46fb737 user: mistachkin tags: msvcWarn)
12:08
Version 3.8.8 (check-in: 7d68a42fac user: drh tags: trunk, release, version-3.8.8)
Changes
Side-by-Side Diff Ignore Whitespace Patch
Changes to src/os_win.c.
3810
3811
3812
3813
3814
3815
3816
3817

3818
3819
3820
3821

3822
3823
3824

3825
3826

3827
3828
3829
3830
3831
3832
3833
3810
3811
3812
3813
3814
3815
3816

3817
3818
3819
3820

3821
3822
3823

3824
3825

3826
3827
3828
3829
3830
3831
3832
3833







-
+



-
+


-
+

-
+







  sqlite3_file *fd,               /* Handle open on database file */
  int iRegion,                    /* Region to retrieve */
  int szRegion,                   /* Size of regions */
  int isWrite,                    /* True to extend file if necessary */
  void volatile **pp              /* OUT: Mapped memory */
){
  winFile *pDbFd = (winFile*)fd;
  winShm *p = pDbFd->pShm;
  winShm *pShm = pDbFd->pShm;
  winShmNode *pShmNode;
  int rc = SQLITE_OK;

  if( !p ){
  if( !pShm ){
    rc = winOpenSharedMemory(pDbFd);
    if( rc!=SQLITE_OK ) return rc;
    p = pDbFd->pShm;
    pShm = pDbFd->pShm;
  }
  pShmNode = p->pShmNode;
  pShmNode = pShm->pShmNode;

  sqlite3_mutex_enter(pShmNode->mutex);
  assert( szRegion==pShmNode->szRegion || pShmNode->nRegion==0 );

  if( pShmNode->nRegion<=iRegion ){
    struct ShmRegion *apNew;           /* New aRegion[] array */
    int nByte = (iRegion+1)*szRegion;  /* Minimum required file size */