Changeset 62370 in vbox
- Timestamp:
- Jul 20, 2016 5:12:05 PM (8 years ago)
- Location:
- trunk/src/VBox
- Files:
-
- 21 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Audio/AudioMixBuffer.cpp
r62367 r62370 61 61 #endif 62 62 63 #ifdef DEBUG 63 64 DECLINLINE(void) audioMixBufDbgPrintInternal(PPDMAUDIOMIXBUF pMixBuf); 65 #endif 64 66 65 67 /* … … 406 408 { \ 407 409 _aType const *pSrc = (_aType const *)pvSrc; \ 408 uint32_t cSamples = RT_MIN(pOpts->cSamples, cbSrc / sizeof(_aType)); \410 uint32_t cSamples = RT_MIN(pOpts->cSamples, (uint32_t)(cbSrc / sizeof(_aType))); \ 409 411 AUDMIXBUF_MACRO_LOG(("cSamples=%RU32, BpS=%zu, lVol=%RU32, rVol=%RU32\n", \ 410 412 pOpts->cSamples, sizeof(_aType), pOpts->From.Volume.uLeft, pOpts->From.Volume.uRight)); \ … … 423 425 { \ 424 426 _aType const *pSrc = (_aType const *)pvSrc; \ 425 const uint32_t cSamples = RT_MIN(pOpts->cSamples, cbSrc / sizeof(_aType)); \427 const uint32_t cSamples = RT_MIN(pOpts->cSamples, (uint32_t)(cbSrc / sizeof(_aType))); \ 426 428 AUDMIXBUF_MACRO_LOG(("cSamples=%RU32, BpS=%zu, lVol=%RU32, rVol=%RU32\n", \ 427 429 cSamples, sizeof(_aType), pOpts->From.Volume.uLeft, pOpts->From.Volume.uRight)); \ … … 569 571 \ 570 572 if (pcDstWritten) \ 571 *pcDstWritten = paDst - paDstStart; \573 *pcDstWritten = (uint32_t)(paDst - paDstStart); \ 572 574 if (pcSrcRead) \ 573 *pcSrcRead = paSrc - paSrcStart; \575 *pcSrcRead = (uint32_t)(paSrc - paSrcStart); \ 574 576 } 575 577 -
trunk/src/VBox/Devices/Audio/DrvAudioCommon.cpp
r62117 r62370 421 421 int rc = VINF_SUCCESS; 422 422 423 int cBits = 8, cShift = 0; 423 uint8_t cBits = 8; 424 int cShift = 0; 424 425 bool fSigned = false; 425 426 … … 456 457 pProps->cBits = cBits; 457 458 pProps->fSigned = fSigned; 458 pProps->cChannels = pCfg->cChannels;459 pProps->cChannels = (uint8_t)pCfg->cChannels; 459 460 pProps->cShift = (pCfg->cChannels == 2) + cShift; 460 461 pProps->uAlign = (1 << pProps->cShift) - 1; -
trunk/src/VBox/Main/include/GuestDnDPrivate.h
r59834 r62370 242 242 uint64_t addProcessed(uint32_t cbDataAdd) 243 243 { 244 const uint64_t cbTotal = getTotal(); 244 const uint64_t cbTotal = getTotal(); NOREF(cbTotal); 245 245 Assert(cbProcessed + cbDataAdd <= cbTotal); 246 246 cbProcessed += cbDataAdd; -
trunk/src/VBox/Main/include/GuestSessionImpl.h
r58552 r62370 103 103 { 104 104 int vrc = SessionTaskOpen::taskThread(NULL, this); 105 NOREF(vrc); 105 106 } 106 107 … … 137 138 { 138 139 int vrc = SessionTaskCopyTo::taskThread(NULL, this); 140 NOREF(vrc); 139 141 } 140 142 … … 169 171 { 170 172 int vrc = SessionTaskCopyFrom::taskThread(NULL, this); 173 NOREF(vrc); 171 174 } 172 175 … … 199 202 { 200 203 int vrc = SessionTaskUpdateAdditions::taskThread(NULL, this); 204 NOREF(vrc); 201 205 } 202 206 -
trunk/src/VBox/Main/include/HGCMObjects.h
r55401 r62370 90 90 uint32_t Handle() 91 91 { 92 return m_core.AvlCore.Key;92 return (uint32_t)m_core.AvlCore.Key; 93 93 }; 94 94 -
trunk/src/VBox/Main/src-client/ConsoleImpl.cpp
r62222 r62370 240 240 { 241 241 int vrc = Console::i_powerUpThread(NULL, this); 242 NOREF(vrc); 242 243 } 243 244 … … 258 259 { 259 260 int vrc = Console::i_powerDownThread(NULL, this); 261 NOREF(vrc); 260 262 } 261 263 }; … … 306 308 BOOL fRemove; 307 309 pNREv->COMGETTER(Remove)(&fRemove); 308 bool fUdp = (proto == NATProtocol_UDP);309 310 Bstr hostIp, guestIp; 310 311 LONG hostPort, guestPort; … … 3909 3910 DeviceType_T lType; 3910 3911 PCFGMNODE pLunL0 = NULL; 3911 PCFGMNODE pCfg = NULL;3912 3912 3913 3913 hrc = pMediumAtt->COMGETTER(Device)(&lDev); H(); … … 4818 4818 /* Remove keys which are supposed to be removed on a suspend. */ 4819 4819 int rc = m_pKeyStore->deleteAllSecretKeys(true /* fSuspend */, true /* fForce */); 4820 NOREF(rc); 4820 4821 } 4821 4822 … … 7554 7555 7555 7556 PUVM pUVM = mpUVM; Assert(pUVM != NULL); 7556 uint32_t cRefs = VMR3RetainUVM(pUVM); Assert(cRefs != UINT32_MAX); 7557 uint32_t cRefs = VMR3RetainUVM(pUVM); Assert(cRefs != UINT32_MAX); NOREF(cRefs); 7557 7558 7558 7559 AssertMsg( mMachineState == MachineState_Running … … 8131 8132 8132 8133 pFolderName->u16Size = (uint16_t)cbString; 8133 pFolderName->u16Length = (uint16_t) cbString - sizeof(RTUTF16);8134 pFolderName->u16Length = (uint16_t)(cbString - sizeof(RTUTF16)); 8134 8135 8135 8136 parms[0].type = VBOX_HGCM_SVC_PARM_PTR; … … 8148 8149 8149 8150 pMapName->u16Size = (uint16_t)cbString; 8150 pMapName->u16Length = (uint16_t) cbString - sizeof(RTUTF16);8151 pMapName->u16Length = (uint16_t)(cbString - sizeof(RTUTF16)); 8151 8152 8152 8153 parms[1].type = VBOX_HGCM_SVC_PARM_PTR; … … 8211 8212 8212 8213 pMapName->u16Size = (uint16_t)cbString; 8213 pMapName->u16Length = (uint16_t) cbString - sizeof(RTUTF16);8214 pMapName->u16Length = (uint16_t)(cbString - sizeof(RTUTF16)); 8214 8215 8215 8216 parms.type = VBOX_HGCM_SVC_PARM_PTR; … … 10282 10283 { 10283 10284 PDRVMAINSTATUS pThis = RT_FROM_MEMBER(pInterface, DRVMAINSTATUS, IMediaNotify); 10284 PPDMDRVINS pDrvIns = pThis->pDrvIns;10285 10285 LogFunc(("uLUN=%d\n", uLUN)); 10286 10286 if (pThis->pmapMediumAttachments) -
trunk/src/VBox/Main/src-client/ConsoleImpl2.cpp
r62103 r62370 1702 1702 1703 1703 char szParamName[] = "BootDeviceX"; 1704 szParamName[sizeof(szParamName) - 2] = ( (char (pos - 1))+ '0');1704 szParamName[sizeof(szParamName) - 2] = (char)(pos - 1 + '0'); 1705 1705 1706 1706 const char *pszBootDevice; … … 2535 2535 for (uint32_t i = 0; i < 6; ++i) 2536 2536 { 2537 charc1 = *macStr++ - '0';2537 int c1 = *macStr++ - '0'; 2538 2538 if (c1 > 9) 2539 2539 c1 -= 7; 2540 charc2 = *macStr++ - '0';2540 int c2 = *macStr++ - '0'; 2541 2541 if (c2 > 9) 2542 2542 c2 -= 7; 2543 *pMac++ = ( (c1 & 0x0f) << 4) | (c2 & 0x0f);2543 *pMac++ = (char)(((c1 & 0x0f) << 4) | (c2 & 0x0f)); 2544 2544 } 2545 2545 InsertConfigBytes(pCfg, "MAC", &Mac, sizeof(Mac)); … … 2598 2598 2599 2599 PCFGMNODE pNetBtDevCfg; 2600 achBootIdx[0] = '0' + uBootIdx++; /* Boot device order. */2600 achBootIdx[0] = (char)('0' + uBootIdx++); /* Boot device order. */ 2601 2601 InsertConfigNode(pNetBootCfg, achBootIdx, &pNetBtDevCfg); 2602 2602 InsertConfigInteger(pNetBtDevCfg, "NIC", it->mInstance); … … 4244 4244 try 4245 4245 { 4246 int rc = VINF_SUCCESS;4247 4246 HRESULT hrc; 4248 4247 Bstr bstr; 4249 PCFGMNODE pLunL1 = NULL;4250 4248 PCFGMNODE pCfg = NULL; 4251 4249 -
trunk/src/VBox/Main/src-client/ConsoleVRDPServer.cpp
r62157 r62370 2146 2146 pvContext, pvUser, hVideo, u32Id, pvData, cbData)); 2147 2147 2148 ConsoleVRDPServer *pServer = static_cast<ConsoleVRDPServer*>(pvContext); 2148 ConsoleVRDPServer *pServer = static_cast<ConsoleVRDPServer*>(pvContext); NOREF(pServer); 2149 2149 H3DORInstance *p = (H3DORInstance *)pvUser; 2150 2150 Assert(p); … … 3693 3693 { 3694 3694 VRDEORDERHDR update; 3695 update.x = x;3696 update.y = y;3697 update.w = w;3698 update.h = h;3695 update.x = (uint16_t)x; 3696 update.y = (uint16_t)y; 3697 update.w = (uint16_t)w; 3698 update.h = (uint16_t)h; 3699 3699 if (mpEntryPoints && mhServer) 3700 3700 { -
trunk/src/VBox/Main/src-client/DisplayImpl.cpp
r62296 r62370 441 441 442 442 /* First block. */ 443 SSMR3PutU32(pSSM, cbThumbnail + 2 * sizeof(uint32_t));443 SSMR3PutU32(pSSM, (uint32_t)(cbThumbnail + 2 * sizeof(uint32_t))); 444 444 SSMR3PutU32(pSSM, 0); /* Block type: thumbnail. */ 445 445 … … 452 452 453 453 /* Second block. */ 454 SSMR3PutU32(pSSM, cbPNG + 2 * sizeof(uint32_t));454 SSMR3PutU32(pSSM, (uint32_t)(cbPNG + 2 * sizeof(uint32_t))); 455 455 SSMR3PutU32(pSSM, 1); /* Block type: png. */ 456 456 … … 469 469 Display::i_displaySSMLoadScreenshot(PSSMHANDLE pSSM, void *pvUser, uint32_t uVersion, uint32_t uPass) 470 470 { 471 Display *that = static_cast<Display*>(pvUser);472 473 471 if (uVersion != sSSMDisplayScreenshotVer) 474 472 return VERR_SSM_UNSUPPORTED_DATA_UNIT_VERSION; … … 549 547 uint32_t cMonitors; 550 548 int rc = SSMR3GetU32(pSSM, &cMonitors); 549 NOREF(rc); 551 550 if (cMonitors != that->mcMonitors) 552 551 return SSMR3SetCfgError(pSSM, RT_SRC_POS, N_("Number of monitors changed (%d->%d)!"), cMonitors, that->mcMonitors); … … 1373 1372 pCtl->aParms[0].type = VBOX_HGCM_SVC_PARM_PTR; 1374 1373 pCtl->aParms[0].u.pointer.addr = pRectsCopy; 1375 pCtl->aParms[0].u.pointer.size = cRect * sizeof(RTRECT);1374 pCtl->aParms[0].u.pointer.size = (uint32_t)(cRect * sizeof(RTRECT)); 1376 1375 1377 1376 rc = i_crCtlSubmit(&pCtl->Hdr, sizeof(*pCtl), i_displayCrCmdFree, pCtl); … … 3103 3102 { 3104 3103 /* No VBVA do a display update. */ 3105 DISPLAYFBINFO *pFBInfo = &pDisplay->maFramebuffers[VBOX_VIDEO_PRIMARY_SCREEN];3106 3104 pDrv->pUpPort->pfnUpdateDisplay(pDrv->pUpPort); 3107 3105 } … … 3115 3113 for (uScreenId = 0; uScreenId < pDisplay->mcMonitors; uScreenId++) 3116 3114 { 3117 DISPLAYFBINFO *pFBInfo = &pDisplay->maFramebuffers[uScreenId];3118 3119 3115 Assert(pDisplay->mParent && pDisplay->mParent->i_consoleVRDPServer()); 3120 3116 pDisplay->mParent->i_consoleVRDPServer()->SendUpdate(uScreenId, NULL, 0); … … 3290 3286 { 3291 3287 unsigned id = (unsigned)pCommand->iDisplay; 3292 int rc = VINF_SUCCESS;3293 3288 if (id >= mcMonitors) 3294 3289 return VERR_INVALID_PARAMETER; … … 3586 3581 uGuestWidth, uGuestHeight, 3587 3582 pu8BufferAddress, u64TimeStamp); 3583 NOREF(rc); 3588 3584 Assert(rc == VINF_SUCCESS /* || rc == VERR_TRY_AGAIN || rc == VINF_TRY_AGAIN*/); 3589 3585 # endif … … 3848 3844 PDRVMAINDISPLAY pDrv = PDMIDISPLAYCONNECTOR_2_MAINDISPLAY(pInterface); 3849 3845 Display *pThis = pDrv->pDisplay; 3850 DISPLAYFBINFO *pFBInfo = &pThis->maFramebuffers[uScreenId];3851 3846 3852 3847 if (ASMAtomicReadU32(&pThis->mu32UpdateVBVAFlags) > 0) … … 4158 4153 4159 4154 PDRVMAINDISPLAY pDrv = PDMIDISPLAYCONNECTOR_2_MAINDISPLAY(pInterface); 4160 Display *pThis = pDrv->pDisplay;4161 4155 4162 4156 uint32_t cbShape = 0; -
trunk/src/VBox/Main/src-client/DisplayImplLegacy.cpp
r55988 r62370 718 718 phdr->h = (uint16_t)h; 719 719 720 DISPLAYFBINFO *pFBInfo = &maFramebuffers[uScreenId];721 722 720 /* Handle the command. 723 721 * -
trunk/src/VBox/Main/src-client/DrvAudioVRDE.cpp
r61922 r62370 498 498 VRDEAUDIOFORMAT audioFmt = pVRDEAudioBegin->fmt; 499 499 500 int iSampleHz = VRDE_AUDIO_FMT_SAMPLE_FREQ(audioFmt); 501 int cChannels = VRDE_AUDIO_FMT_CHANNELS(audioFmt); 502 int cBits = VRDE_AUDIO_FMT_BITS_PER_SAMPLE(audioFmt); 503 bool fUnsigned = VRDE_AUDIO_FMT_SIGNED(audioFmt); 500 int iSampleHz = VRDE_AUDIO_FMT_SAMPLE_FREQ(audioFmt); NOREF(iSampleHz); 501 int cChannels = VRDE_AUDIO_FMT_CHANNELS(audioFmt); NOREF(cChannels); 502 int cBits = VRDE_AUDIO_FMT_BITS_PER_SAMPLE(audioFmt); NOREF(cBits); 503 bool fUnsigned = VRDE_AUDIO_FMT_SIGNED(audioFmt); NOREF(fUnsigned); 504 504 505 505 LogFlowFunc(("cbSample=%RU32, iSampleHz=%d, cChannels=%d, cBits=%d, fUnsigned=%RTbool\n", -
trunk/src/VBox/Main/src-client/GuestDnDSourceImpl.cpp
r60050 r62370 87 87 { 88 88 int vrc = GuestDnDSource::i_receiveDataThread(*m_pThread, this); 89 NOREF(vrc); 89 90 } 90 91 -
trunk/src/VBox/Main/src-client/GuestDnDTargetImpl.cpp
r60051 r62370 91 91 { 92 92 int vrc = GuestDnDTarget::i_sendDataThread(*m_pThread, this); 93 NOREF(vrc); 93 94 } 94 95 -
trunk/src/VBox/Main/src-client/GuestSessionImpl.cpp
r62358 r62370 93 93 { 94 94 int vrc = GuestSession::i_startSessionThread(NULL, this); 95 NOREF(vrc); 95 96 } 96 97 }; … … 293 294 294 295 int rc = VINF_SUCCESS; 296 NOREF(rc); 295 297 296 298 AutoWriteLock alock(this COMMA_LOCKVAL_SRC_POS); … … 1744 1746 LogFlowThisFuncEnter(); 1745 1747 1746 HRESULT hr = S_OK;1747 1748 int vrc = VINF_SUCCESS; 1748 1749 … … 1761 1762 * worker thread. */ 1762 1763 //this function delete pTask in case of exceptions, so there is no need in the call of delete operator 1763 hr= pTask->createThread();1764 1764 HRESULT hrc = pTask->createThread(); 1765 NOREF(hrc); 1765 1766 } 1766 1767 catch(std::bad_alloc &) -
trunk/src/VBox/Main/src-client/MachineDebuggerImpl.cpp
r61935 r62370 1313 1313 ssize_t cch = DBGFR3RegFormatValue(szHex, sizeof(szHex), &paRegs[iReg].Val, 1314 1314 paRegs[iReg].enmType, true /*fSpecial*/); 1315 NOREF(cch); 1315 1316 Assert(cch > 0); 1316 1317 aNames[iReg] = Utf8Str(paRegs[iReg].pszName); -
trunk/src/VBox/Main/src-client/MouseImpl.cpp
r59995 r62370 1009 1009 if (fValid) 1010 1010 { 1011 uint8_t fu8 = (fInContact? 0x01: 0x00)1012 | (fInRange? 0x02: 0x00);1011 uint8_t fu8 = (uint8_t)( (fInContact? 0x01: 0x00) 1012 | (fInRange? 0x02: 0x00)); 1013 1013 pau64Contacts[cContacts] = RT_MAKE_U64_FROM_U16((uint16_t)xAdj, 1014 1014 (uint16_t)yAdj, -
trunk/src/VBox/Main/src-client/PCIRawDevImpl.cpp
r53873 r62370 78 78 ComPtr<IVirtualBox> vbox; 79 79 80 HRESULT hrc = machine->COMGETTER(Parent)(vbox.asOutParam()); 80 HRESULT hrc = machine->COMGETTER(Parent)(vbox.asOutParam()); NOREF(hrc); 81 81 Assert(SUCCEEDED(hrc)); 82 82 … … 98 98 msg = BstrFmt("runtime error %Rrc", rc); 99 99 100 fireHostPCIDevicePlugEvent(es, bstrId.raw(), true /* plugged */, RT_SUCCESS (rc) /* success */, pda, msg.raw());100 fireHostPCIDevicePlugEvent(es, bstrId.raw(), true /* plugged */, RT_SUCCESS_NP(rc) /* success */, pda, msg.raw()); 101 101 102 102 return VINF_SUCCESS; -
trunk/src/VBox/Main/src-client/RemoteUSBDeviceImpl.cpp
r59381 r62370 79 79 80 80 unconst(mData.port) = pDevDesc->idPort; 81 unconst(mData.version) = pDevDesc->bcdUSB >> 8;81 unconst(mData.version) = (uint16_t)(pDevDesc->bcdUSB >> 8); 82 82 if (fDescExt) 83 83 { … … 117 117 118 118 mData.dirty = false; 119 unconst(mData.devId) = pDevDesc->id;119 unconst(mData.devId) = (uint16_t)pDevDesc->id; 120 120 121 121 unconst(mData.clientId) = u32ClientId; -
trunk/src/VBox/Main/src-client/UsbCardReader.cpp
r57546 r62370 432 432 LogFlowFunc(("ENTER: pvUser:%p\n", 433 433 pvUser)); 434 PUSBCARDREADER pThis = RT_FROM_MEMBER(pInterface, USBCARDREADER, ICardReaderDown); 434 PUSBCARDREADER pThis = RT_FROM_MEMBER(pInterface, USBCARDREADER, ICardReaderDown); NOREF(pThis); 435 435 int rc = VERR_NOT_SUPPORTED; 436 436 AssertRC(rc); … … 446 446 LogFlowFunc(("ENTER: pvUser:%p, u32Disposition:%RX32\n", 447 447 pvUser, u32Disposition)); 448 PUSBCARDREADER pThis = RT_FROM_MEMBER(pInterface, USBCARDREADER, ICardReaderDown); 448 PUSBCARDREADER pThis = RT_FROM_MEMBER(pInterface, USBCARDREADER, ICardReaderDown); NOREF(pThis); 449 449 int rc = VERR_NOT_SUPPORTED; 450 450 AssertRC(rc); … … 745 745 case VRDE_SCARD_NOTIFY_DETACH: 746 746 { 747 VRDESCARDNOTIFYDETACH *p = (VRDESCARDNOTIFYDETACH *)pvData; 747 VRDESCARDNOTIFYDETACH *p = (VRDESCARDNOTIFYDETACH *)pvData; NOREF(p); 748 748 Assert(cbData == sizeof(VRDESCARDNOTIFYDETACH)); 749 749 … … 831 831 { 832 832 Assert(cbData == sizeof(VRDESCARDRELEASECONTEXTRSP) || RT_FAILURE(rcRequest)); 833 VRDESCARDRELEASECONTEXTRSP *pRsp = (VRDESCARDRELEASECONTEXTRSP *)pvData; 834 UCRREQCTX *pCtx = (UCRREQCTX *)pvUser; 833 VRDESCARDRELEASECONTEXTRSP *pRsp = (VRDESCARDRELEASECONTEXTRSP *)pvData; NOREF(pRsp); 834 UCRREQCTX *pCtx = (UCRREQCTX *)pvUser; NOREF(pCtx); 835 835 836 836 Assert(pCtx->u32Function == u32Function); … … 903 903 { 904 904 Assert(cbData == sizeof(VRDESCARDCANCELRSP) || RT_FAILURE(rcRequest)); 905 VRDESCARDCANCELRSP *pRsp = (VRDESCARDCANCELRSP *)pvData; 906 UCRREQCTX *pCtx = (UCRREQCTX *)pvUser; 905 VRDESCARDCANCELRSP *pRsp = (VRDESCARDCANCELRSP *)pvData; NOREF(pRsp); 906 UCRREQCTX *pCtx = (UCRREQCTX *)pvUser; NOREF(pCtx); 907 907 908 908 Assert(pCtx->u32Function == u32Function); … … 953 953 { 954 954 Assert(cbData == sizeof(VRDESCARDRECONNECTRSP) || RT_FAILURE(rcRequest)); 955 VRDESCARDRECONNECTRSP *pRsp = (VRDESCARDRECONNECTRSP *)pvData; 956 UCRREQCTX *pCtx = (UCRREQCTX *)pvUser; 955 VRDESCARDRECONNECTRSP *pRsp = (VRDESCARDRECONNECTRSP *)pvData; NOREF(pRsp); 956 UCRREQCTX *pCtx = (UCRREQCTX *)pvUser; NOREF(pCtx); 957 957 958 958 Assert(pCtx->u32Function == u32Function); … … 994 994 { 995 995 Assert(cbData == sizeof(VRDESCARDBEGINTRANSACTIONRSP) || RT_FAILURE(rcRequest)); 996 VRDESCARDBEGINTRANSACTIONRSP *pRsp = (VRDESCARDBEGINTRANSACTIONRSP *)pvData; 997 UCRREQCTX *pCtx = (UCRREQCTX *)pvUser; 996 VRDESCARDBEGINTRANSACTIONRSP *pRsp = (VRDESCARDBEGINTRANSACTIONRSP *)pvData; NOREF(pRsp); 997 UCRREQCTX *pCtx = (UCRREQCTX *)pvUser; NOREF(pCtx); 998 998 999 999 Assert(pCtx->u32Function == u32Function); … … 1005 1005 { 1006 1006 Assert(cbData == sizeof(VRDESCARDENDTRANSACTIONRSP) || RT_FAILURE(rcRequest)); 1007 VRDESCARDENDTRANSACTIONRSP *pRsp = (VRDESCARDENDTRANSACTIONRSP *)pvData; 1008 UCRREQCTX *pCtx = (UCRREQCTX *)pvUser; 1007 VRDESCARDENDTRANSACTIONRSP *pRsp = (VRDESCARDENDTRANSACTIONRSP *)pvData; NOREF(pRsp); 1008 UCRREQCTX *pCtx = (UCRREQCTX *)pvUser; NOREF(pCtx); 1009 1009 1010 1010 Assert(pCtx->u32Function == u32Function); … … 1016 1016 { 1017 1017 Assert(cbData == sizeof(VRDESCARDSTATERSP) || RT_FAILURE(rcRequest)); 1018 VRDESCARDSTATERSP *pRsp = (VRDESCARDSTATERSP *)pvData; 1019 UCRREQCTX *pCtx = (UCRREQCTX *)pvUser; 1018 VRDESCARDSTATERSP *pRsp = (VRDESCARDSTATERSP *)pvData; NOREF(pRsp); 1019 UCRREQCTX *pCtx = (UCRREQCTX *)pvUser; NOREF(pCtx); 1020 1020 1021 1021 Assert(pCtx->u32Function == u32Function); … … 1578 1578 req.ioSendPci.u32Protocol = pioSendRequest->u32Protocol; 1579 1579 req.ioSendPci.u32PciLength = pioSendRequest->cbPciLength < 2 * sizeof(uint32_t)? 1580 2 * sizeof(uint32_t):1580 (uint32_t)(2 * sizeof(uint32_t)): 1581 1581 pioSendRequest->cbPciLength; 1582 1582 Assert(pioSendRequest->cbPciLength <= VRDE_SCARD_MAX_PCI_DATA + 2 * sizeof(uint32_t)); -
trunk/src/VBox/Main/src-client/UsbWebcamInterface.cpp
r51612 r62370 215 215 case VRDE_VIDEOIN_NOTIFY_ID_DETACH: 216 216 { 217 VRDEVIDEOINNOTIFYDETACH *p = (VRDEVIDEOINNOTIFYDETACH *)pvData; 217 VRDEVIDEOINNOTIFYDETACH *p = (VRDEVIDEOINNOTIFYDETACH *)pvData; NOREF(p); 218 218 Assert(cbData == sizeof(VRDEVIDEOINNOTIFYDETACH)); 219 219 … … 272 272 const VRDEVIDEOINCTRLHDR *pControl, uint32_t cbControl) 273 273 { 274 EMWEBCAMREMOTE *pRemote = (EMWEBCAMREMOTE *)pDeviceCtx; 274 EMWEBCAMREMOTE *pRemote = (EMWEBCAMREMOTE *)pDeviceCtx; NOREF(pRemote); 275 275 Assert(pRemote == mpRemote); 276 276 -
trunk/src/VBox/Main/src-client/VMMDevInterface.cpp
r55988 r62370 535 535 PDRVMAINVMMDEV pDrv = RT_FROM_MEMBER(pInterface, DRVMAINVMMDEV, Connector); 536 536 Console *pConsole = pDrv->pVMMDev->getParent(); 537 BOOL val = 0;538 537 539 538 if (!pfPageFusionEnabled)
Note:
See TracChangeset
for help on using the changeset viewer.