VirtualBox

Changeset 62452 in vbox for trunk


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
Files:
11 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Disassembler/DisasmFormatYasm.cpp

    r60442 r62452  
    11301130                        PUT_SIZE_OVERRIDE();
    11311131                        PUT_SEGMENT_OVERRIDE();
     1132                        off = 0;
    11321133                        int rc = VERR_SYMBOL_NOT_FOUND;
    11331134                        switch (pParam->fUse & (DISUSE_IMMEDIATE_ADDR_16_16 | DISUSE_IMMEDIATE_ADDR_16_32 | DISUSE_DISPLACEMENT64 | DISUSE_DISPLACEMENT32 | DISUSE_DISPLACEMENT16))
     
    11781179                        PUT_C('[');
    11791180                        PUT_SEGMENT_OVERRIDE();
     1181                        off = 0;
    11801182                        int rc = VERR_SYMBOL_NOT_FOUND;
    11811183                        switch (pParam->fUse & (DISUSE_IMMEDIATE_ADDR_16_16 | DISUSE_IMMEDIATE_ADDR_16_32 | DISUSE_DISPLACEMENT64 | DISUSE_DISPLACEMENT32 | DISUSE_DISPLACEMENT16))
  • trunk/src/VBox/Runtime/common/log/log.cpp

    r62448 r62452  
    23872387                    {
    23882388                        int rc = RTStrCopyEx(szTmp, sizeof(szTmp), pszValue, cch);
    2389                         uint32_t cbRingBuf;
     2389                        uint32_t cbRingBuf = 0;
    23902390                        if (RT_SUCCESS(rc))
    23912391                            rc = RTStrToUInt32Full(szTmp, 0, &cbRingBuf);
  • trunk/src/VBox/Runtime/common/string/strcache.cpp

    r57358 r62452  
    850850    {
    851851        uint32_t cRefs = ASMAtomicIncU32(&pEntry->cRefs);
    852         Assert(cRefs < UINT32_MAX / 2);
     852        Assert(cRefs < UINT32_MAX / 2); NOREF(cRefs);
    853853    }
    854854    else
  • trunk/src/VBox/Runtime/common/zip/tar.cpp

    r57358 r62452  
    243243    if (pInt->hVfsFss != NIL_RTVFSFSSTREAM)
    244244    {
    245         uint32_t cRefs = RTVfsFsStrmRelease(pInt->hVfsFss); Assert(cRefs != UINT32_MAX);
     245        uint32_t cRefs = RTVfsFsStrmRelease(pInt->hVfsFss); Assert(cRefs != UINT32_MAX); NOREF(cRefs);
    246246        pInt->hVfsFss  = NIL_RTVFSFSSTREAM;
    247247    }
     
    249249    if (pInt->hVfsFile != NIL_RTVFSFILE)
    250250    {
    251         uint32_t cRefs = RTVfsFileRelease(pInt->hVfsFile); Assert(cRefs != UINT32_MAX);
     251        uint32_t cRefs = RTVfsFileRelease(pInt->hVfsFile); Assert(cRefs != UINT32_MAX); NOREF(cRefs);
    252252        pInt->hVfsFile = NIL_RTVFSFILE;
    253253    }
     
    362362            if (pInt->hVfsFss != NIL_RTVFSFSSTREAM)
    363363            {
    364                 uint32_t cRefs = RTVfsFsStrmRelease(pInt->hVfsFss); Assert(cRefs != UINT32_MAX);
     364                uint32_t cRefs = RTVfsFsStrmRelease(pInt->hVfsFss); Assert(cRefs != UINT32_MAX); NOREF(cRefs);
    365365                pInt->hVfsFss  = NIL_RTVFSFSSTREAM;
    366366            }
  • trunk/src/VBox/Runtime/r3/memsafer-r3.cpp

    r57432 r62452  
    161161    bool fRc = RTAvlPVInsert(&g_pMemSaferTree, &pThis->Core);
    162162    RTCritSectRwLeaveExcl(&g_MemSaferCritSect);
    163     Assert(fRc);
     163    Assert(fRc); NOREF(fRc);
    164164}
    165165
  • 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        }
  • trunk/src/bldprogs/VBoxCPP.cpp

    r62450 r62452  
    26072607
    26082608            bool fRc = RTStrSpaceInsert(&pThis->StrSpace, &pMacro->Core);
    2609             Assert(fRc);
     2609            Assert(fRc); NOREF(fRc);
    26102610        }
    26112611        else
     
    43714371        {
    43724372            /* Comment? */
    4373             unsigned ch2 = ScmStreamGetCh(pStrmInput); Assert(ch == ch2);
     4373            unsigned ch2 = ScmStreamGetCh(pStrmInput); Assert(ch == ch2); NOREF(ch2);
    43744374            ch = ScmStreamPeekCh(pStrmInput);
    43754375            if (ch == '*')
     
    44034403        {
    44044404            unsigned ch2 = ScmStreamGetCh(pStrmInput);
    4405             Assert(ch == ch2);
     4405            Assert(ch == ch2); NOREF(ch2);
    44064406            rcExit = RTEXITCODE_SUCCESS;
    44074407        }
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