VirtualBox

Changeset 62980 in vbox


Ignore:
Timestamp:
Aug 4, 2016 12:01:05 PM (8 years ago)
Author:
vboxsync
Message:

tstAudioMixBuffer.cpp: removed unused variables and warnings.

Location:
trunk/src/VBox/Devices
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Audio/testcase/tstAudioMixBuffer.cpp

    r61609 r62980  
    7676    int16_t samples16[2] = { 0xAA, 0xBB };
    7777    int32_t samples32[2] = { 0xCC, 0xDD };
    78     int64_t samples64[2] = { 0xEE, 0xFF };
     78    /* int64_t samples64[2] = { 0xEE, 0xFF }; - unused */
    7979
    8080    RTTESTI_CHECK_RC_OK(AudioMixBufWriteAt(&mb, 0, &samples8, sizeof(samples8), &written));
     
    111111    RTTESTI_CHECK(written == 1);
    112112    RTTESTI_CHECK(AudioMixBufFree(&mb) == 0);
    113     RTTESTI_CHECK(AudioMixBufFreeBytes(&mb) == AUDIOMIXBUF_S2B(&mb, 0));
     113    RTTESTI_CHECK(AudioMixBufFreeBytes(&mb) == AUDIOMIXBUF_S2B(&mb, 0U));
    114114    RTTESTI_CHECK(AudioMixBufUsed(&mb) == cBufSize);
    115115
     
    206206    uint32_t read , written, mixed;
    207207
    208     uint32_t cChild1Free     = cBufSize;
    209     uint32_t cChild1Mixed    = 0;
    210     uint32_t cSamplesParent1 = cSamples;
    211208    uint32_t cSamplesChild1  = cSamples;
    212 
    213     uint32_t cChild2Free     = cBufSize;
    214     uint32_t cChild2Mixed    = 0;
    215     uint32_t cSamplesParent2 = cSamples;
    216209    uint32_t cSamplesChild2  = cSamples;
    217210
     
    326319    uint32_t    read, written, mixed, temp;
    327320
    328     uint32_t cChildFree     = cBufSize;
    329     uint32_t cChildMixed    = 0;
    330321    uint32_t cSamplesChild  = 16;
    331322    uint32_t cSamplesParent = cSamplesChild * 2 - 2;
     
    429420    uint32_t    read, written, mixed, temp;
    430421
    431     uint32_t cChildFree     = cBufSize;
    432     uint32_t cChildMixed    = 0;
    433422    uint32_t cSamplesChild  = 16;
    434423    uint32_t cSamplesParent = cSamplesChild * 2 - 2;
     
    519508    uint32_t    read, written, mixed;
    520509
    521     uint32_t cChildFree     = cBufSize;
    522     uint32_t cChildMixed    = 0;
    523510    uint32_t cSamplesChild  = 8;
    524511    uint32_t cSamplesParent = cSamplesChild;
  • trunk/src/VBox/Devices/Network/DrvNAT.cpp

    r62511 r62980  
    234234
    235235
     236/**
     237 * @callback_method_impl{FNPDMTHREADDRV}
     238 */
    236239static DECLCALLBACK(int) drvNATRecv(PPDMDRVINS pDrvIns, PPDMTHREAD pThread)
    237240{
     
    251254
    252255
     256/**
     257 * @callback_method_impl{FNPDMTHREADWAKEUPDRV}
     258 */
    253259static DECLCALLBACK(int) drvNATRecvWakeup(PPDMDRVINS pDrvIns, PPDMTHREAD pThread)
    254260{
     261    RT_NOREF(pThread);
    255262    PDRVNAT pThis = PDMINS_2_DATA(pDrvIns, PDRVNAT);
    256263    int rc;
     
    261268}
    262269
     270
     271/**
     272 * @callback_method_impl{FNPDMTHREADDRV}
     273 */
    263274static DECLCALLBACK(int) drvNATUrgRecv(PPDMDRVINS pDrvIns, PPDMTHREAD pThread)
    264275{
     
    280291}
    281292
     293
     294/**
     295 * @callback_method_impl{FNPDMTHREADWAKEUPDRV}
     296 */
    282297static DECLCALLBACK(int) drvNATUrgRecvWakeup(PPDMDRVINS pDrvIns, PPDMTHREAD pThread)
    283298{
     299    RT_NOREF(pThread);
    284300    PDRVNAT pThis = PDMINS_2_DATA(pDrvIns, PDRVNAT);
    285301    int rc = RTSemEventSignal(pThis->EventUrgRecv);
     
    288304    return VINF_SUCCESS;
    289305}
     306
    290307
    291308static DECLCALLBACK(void) drvNATUrgRecvWorker(PDRVNAT pThis, uint8_t *pu8Buf, int cb, struct mbuf *m)
     
    423440            PCPDMNETWORKGSO pGso    = (PCPDMNETWORKGSO)pSgBuf->pvUser;
    424441            uint32_t const  cSegs   = PDMNetGsoCalcSegmentCount(pGso, pSgBuf->cbUsed);  Assert(cSegs > 1);
    425             for (size_t iSeg = 0; iSeg < cSegs; iSeg++)
     442            for (uint32_t iSeg = 0; iSeg < cSegs; iSeg++)
    426443            {
    427444                size_t cbSeg;
     
    459476static DECLCALLBACK(int) drvNATNetworkUp_BeginXmit(PPDMINETWORKUP pInterface, bool fOnWorkerThread)
    460477{
     478    RT_NOREF(fOnWorkerThread);
    461479    PDRVNAT pThis = RT_FROM_MEMBER(pInterface, DRVNAT, INetworkUp);
    462480    int rc = RTCritSectTryEnter(&pThis->XmitLock);
     
    572590static DECLCALLBACK(int) drvNATNetworkUp_SendBuf(PPDMINETWORKUP pInterface, PPDMSCATTERGATHER pSgBuf, bool fOnWorkerThread)
    573591{
     592    RT_NOREF(fOnWorkerThread);
    574593    PDRVNAT pThis = RT_FROM_MEMBER(pInterface, DRVNAT, INetworkUp);
    575594    Assert((pSgBuf->fFlags & PDMSCATTERGATHER_FLAGS_OWNER_MASK) == PDMSCATTERGATHER_FLAGS_OWNER_1);
     
    613632static void drvNATNotifyNATThread(PDRVNAT pThis, const char *pszWho)
    614633{
     634    RT_NOREF(pszWho);
    615635    int rc;
    616636#ifndef RT_OS_WINDOWS
     
    630650static DECLCALLBACK(void) drvNATNetworkUp_SetPromiscuousMode(PPDMINETWORKUP pInterface, bool fPromiscuous)
    631651{
     652    RT_NOREF(pInterface, fPromiscuous)
    632653    LogFlow(("drvNATNetworkUp_SetPromiscuousMode: fPromiscuous=%d\n", fPromiscuous));
    633654    /* nothing to do */
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