VirtualBox

Changeset 62452 in vbox for trunk/src/VBox/Runtime/r3/win


Ignore:
Timestamp:
Jul 22, 2016 3:16:45 PM (8 years ago)
Author:
vboxsync
Message:

*: MSC level 4 warnings in release bldprogs.

Location:
trunk/src/VBox/Runtime/r3/win
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/r3/win/allocex-win.cpp

    r57358 r62452  
    116116{
    117117    BOOL fRc = VirtualFree(pv, cb, MEM_RELEASE);
    118     Assert(fRc);
     118    Assert(fRc); NOREF(fRc);
    119119}
    120120
  • trunk/src/VBox/Runtime/r3/win/localipc-win.cpp

    r62448 r62452  
    455455{
    456456    uint32_t cRefs = ASMAtomicIncU32(&pThis->cRefs);
    457     Assert(cRefs < UINT32_MAX / 2 && cRefs);
     457    Assert(cRefs < UINT32_MAX / 2 && cRefs); NOREF(cRefs);
    458458}
    459459
     
    903903{
    904904    uint32_t cRefs = ASMAtomicIncU32(&pThis->cRefs);
    905     Assert(cRefs < UINT32_MAX / 2 && cRefs);
     905    Assert(cRefs < UINT32_MAX / 2 && cRefs); NOREF(cRefs);
    906906}
    907907
     
    15311531                        break;
    15321532                    }
    1533                     BOOL fRc = ResetEvent(pThis->Read.OverlappedIO.hEvent); Assert(fRc == TRUE);
     1533                    BOOL fRc = ResetEvent(pThis->Read.OverlappedIO.hEvent); Assert(fRc == TRUE); NOREF(fRc);
    15341534                    DWORD cbRead = 0;
    15351535                    if (ReadFile(pThis->hNmPipe, pThis->abBuf, 0 /*cbToRead*/, &cbRead, &pThis->Read.OverlappedIO))
  • trunk/src/VBox/Runtime/r3/win/process-win.cpp

    r62448 r62452  
    22532253     * Create the command line and convert the executable name.
    22542254     */
    2255     PRTUTF16 pwszCmdLine;
     2255    PRTUTF16 pwszCmdLine = NULL; /* Shut up, MSC! */
    22562256    if (RT_SUCCESS(rc))
    22572257        rc = RTGetOptArgvToUtf16String(&pwszCmdLine, papszArgs,
     
    24982498
    24992499    BOOL fRc = GetProcessAffinityMask(GetCurrentProcess(), &dwProcessAffinityMask, &dwSystemAffinityMask);
    2500     Assert(fRc);
     2500    Assert(fRc); NOREF(fRc);
    25012501
    25022502    return dwProcessAffinityMask;
  • trunk/src/VBox/Runtime/r3/win/semevent-win.cpp

    r57358 r62452  
    220220RTDECL(int)   RTSemEventWaitNoResume(RTSEMEVENT hEventSem, RTMSINTERVAL cMillies)
    221221{
    222     PCRTLOCKVALSRCPOS pSrcPos = NULL;
    223 
    224222    /*
    225223     * Validate input.
     
    243241        if (rc != WAIT_TIMEOUT || cMillies == 0)
    244242            return rtSemEventWaitHandleStatus(pThis, rc);
    245         int rc9 = RTLockValidatorRecSharedCheckBlocking(&pThis->Signallers, hThreadSelf, pSrcPos, false,
     243        int rc9 = RTLockValidatorRecSharedCheckBlocking(&pThis->Signallers, hThreadSelf, NULL /*pSrcPos*/, false,
    246244                                                        cMillies, RTTHREADSTATE_EVENT, true);
    247245        if (RT_FAILURE(rc9))
  • trunk/src/VBox/Runtime/r3/win/timer-win.cpp

    r62448 r62452  
    243243             * Rearm the timer handler.
    244244             */
    245 #ifdef USE_CATCH_UP
     245# ifdef USE_CATCH_UP
    246246            pTimer->llNext.QuadPart += NSInterval;
    247247            LARGE_INTEGER ll;
     
    251251            else
    252252                ll.QuadPart = -500000 / 100; /* need to catch up, do a minimum wait of 0.5ms. */
    253 #else
     253# else
    254254            LARGE_INTEGER ll = pTimer->llNext;
    255 #endif
    256             BOOL frc = SetWaitableTimer(pTimer->hTimer, &ll, 0, NULL, NULL, FALSE);
    257             AssertMsg(frc || pTimer->u32Magic != RTTIMER_MAGIC, ("last error %d\n", GetLastError()));
     255# endif
     256            BOOL fRc = SetWaitableTimer(pTimer->hTimer, &ll, 0, NULL, NULL, FALSE);
     257            AssertMsg(fRc || pTimer->u32Magic != RTTIMER_MAGIC, ("last error %d\n", GetLastError())); NOREF(fRc);
    258258        }
    259259        else
     
    265265            int rc2 = GetLastError();
    266266            RTThreadUserSignal(Thread);
    267             AssertMsgFailed(("Wait on hTimer failed, rc=%d lasterr=%d\n", rc, rc2));
     267            AssertMsgFailed(("Wait on hTimer failed, rc=%d lasterr=%d\n", rc, rc2)); NOREF(rc2);
    268268            return -1;
    269269        }
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette