VirtualBox

Changeset 62965 in vbox for trunk


Ignore:
Timestamp:
Aug 4, 2016 9:57:20 AM (8 years ago)
Author:
vboxsync
Message:

Devices: warnings

Location:
trunk
Files:
8 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/VBox/VMMDev.h

    r62476 r62965  
    21112111#define VBVA_MAX_RECORDS (64)
    21122112
    2113 #define VBVA_F_MODE_ENABLED         (0x00000001)
    2114 #define VBVA_F_MODE_VRDP            (0x00000002)
    2115 #define VBVA_F_MODE_VRDP_RESET      (0x00000004)
    2116 #define VBVA_F_MODE_VRDP_ORDER_MASK (0x00000008)
    2117 
    2118 #define VBVA_F_STATE_PROCESSING     (0x00010000)
    2119 
    2120 #define VBVA_F_RECORD_PARTIAL       (0x80000000)
     2113#define VBVA_F_MODE_ENABLED         UINT32_C(0x00000001)
     2114#define VBVA_F_MODE_VRDP            UINT32_C(0x00000002)
     2115#define VBVA_F_MODE_VRDP_RESET      UINT32_C(0x00000004)
     2116#define VBVA_F_MODE_VRDP_ORDER_MASK UINT32_C(0x00000008)
     2117
     2118#define VBVA_F_STATE_PROCESSING     UINT32_C(0x00010000)
     2119
     2120#define VBVA_F_RECORD_PARTIAL       UINT32_C(0x80000000)
    21212121/** @} */
    21222122
  • trunk/include/VBox/vmm/pdmaudioifs.h

    r62833 r62965  
    776776     * Adds a reference to the specified audio stream.
    777777     *
    778      * @returns New reference count.
     778     * @returns New reference count. UINT32_MAX on error.
    779779     * @param   pInterface      Pointer to the interface structure containing the called function pointer.
    780780     * @param   pStream         Pointer to audio stream adding the reference to.
    781781     */
    782     DECLR3CALLBACKMEMBER(uint32_t, pfnStreamAddRef, (PPDMIAUDIOCONNECTOR pInterface, PPDMAUDIOSTREAM pStream));
     782    DECLR3CALLBACKMEMBER(uint32_t, pfnStreamRetain, (PPDMIAUDIOCONNECTOR pInterface, PPDMAUDIOSTREAM pStream));
    783783
    784784    /**
    785785     * Releases a reference from the specified stream.
    786786     *
    787      * @returns New reference count.
     787     * @returns New reference count. UINT32_MAX on error.
    788788     * @param   pInterface      Pointer to the interface structure containing the called function pointer.
    789789     * @param   pStream         Pointer to audio stream releasing a reference from.
  • trunk/src/VBox/Devices/Audio/AudioMixBuffer.cpp

    r62909 r62965  
    583583
    584584/** Dummy conversion used when the source is muted. */
    585 static DECLCALLBACK(uint32_t) audioMixBufConvFromSilence(PPDMAUDIOSAMPLE paDst, const void *pvSrc,
    586                                                          uint32_t cbSrc, PCPDMAUDMIXBUFCONVOPTS pOpts)
    587 {
     585static DECLCALLBACK(uint32_t)
     586audioMixBufConvFromSilence(PPDMAUDIOSAMPLE paDst, const void *pvSrc, uint32_t cbSrc, PCPDMAUDMIXBUFCONVOPTS pOpts)
     587{
     588    RT_NOREF(cbSrc, pvSrc);
     589
    588590    /* Internally zero always corresponds to silence. */
    589591    RT_BZERO(paDst, pOpts->cSamples * sizeof(paDst[0]));
     
    648650        }
    649651    }
    650 
    651     return NULL;
     652    /* not reached */
    652653}
    653654
     
    709710        }
    710711    }
    711 
    712     return NULL;
     712    /* not reached */
    713713}
    714714
     
    10191019#endif
    10201020
    1021     uint32_t cSrcToRead;
     1021    uint32_t cSrcToRead = 0;
    10221022    uint32_t cSrcRead;
    10231023
  • trunk/src/VBox/Devices/Audio/AudioMixer.cpp

    r62605 r62965  
    129129int AudioMixerCreate(const char *pszName, uint32_t fFlags, PAUDIOMIXER *ppMixer)
    130130{
     131    RT_NOREF(fFlags);
    131132    AssertPtrReturn(pszName, VERR_INVALID_POINTER);
    132133    /** @todo Add fFlags validation. */
     
    176177void AudioMixerDebug(PAUDIOMIXER pMixer, PCDBGFINFOHLP pHlp, const char *pszArgs)
    177178{
     179    RT_NOREF(pszArgs);
    178180    PAUDMIXSINK pSink;
    179181    unsigned    iSink = 0;
     
    491493        /* Increase the stream's reference count to let others know
    492494         * we're reyling on it to be around now. */
    493         pConn->pfnStreamAddRef(pConn, pStream);
     495        pConn->pfnStreamRetain(pConn, pStream);
    494496    }
    495497
     
    763765int AudioMixerSinkRead(PAUDMIXSINK pSink, AUDMIXOP enmOp, void *pvBuf, uint32_t cbBuf, uint32_t *pcbRead)
    764766{
     767    RT_NOREF(enmOp);
    765768    AssertPtrReturn(pSink, VERR_INVALID_POINTER);
    766769    AssertPtrReturn(pvBuf, VERR_INVALID_POINTER);
     
    10801083        AssertPtr(pConn);
    10811084
    1082         uint32_t cPlayed   = 0;
    10831085        uint32_t cCaptured = 0;
    10841086
     
    12571259int AudioMixerSinkWrite(PAUDMIXSINK pSink, AUDMIXOP enmOp, const void *pvBuf, uint32_t cbBuf, uint32_t *pcbWritten)
    12581260{
     1261    RT_NOREF(enmOp);
    12591262    AssertPtrReturn(pSink, VERR_INVALID_POINTER);
    12601263    /* pcbWritten is optional. */
     
    13201323int AudioMixerStreamCtl(PAUDMIXSTREAM pMixStream, PDMAUDIOSTREAMCMD enmCmd, uint32_t fCtl)
    13211324{
     1325    RT_NOREF(fCtl);
    13221326    AssertPtrReturn(pMixStream, VERR_INVALID_POINTER);
    13231327    /** @todo Validate fCtl. */
  • trunk/src/VBox/Devices/Audio/DevSB16.cpp

    r62605 r62965  
    21532153            rc2 = pDrv->pConnector->pfnStreamCreate(pDrv->pConnector, &CfgHost, pCfg, &pDrv->Out.pStream);
    21542154            if (RT_SUCCESS(rc2))
    2155                 pDrv->pConnector->pfnStreamAddRef(pDrv->pConnector, pDrv->Out.pStream);
     2155                pDrv->pConnector->pfnStreamRetain(pDrv->pConnector, pDrv->Out.pStream);
    21562156        }
    21572157
  • trunk/src/VBox/Devices/Audio/DrvAudio.cpp

    r62607 r62965  
    785785
    786786/**
    787  * @interface_method_impl{PDMIAUDIOCONNECTOR,pfnStreamAddRef}
    788  */
    789 static DECLCALLBACK(uint32_t) drvAudioStreamAddRef(PPDMIAUDIOCONNECTOR pInterface, PPDMAUDIOSTREAM pStream)
    790 {
    791    AssertPtrReturn(pInterface, VERR_INVALID_POINTER);
    792    AssertPtrReturn(pStream,    VERR_INVALID_POINTER);
     787 * @interface_method_impl{PDMIAUDIOCONNECTOR,pfnStreamRetain}
     788 */
     789static DECLCALLBACK(uint32_t) drvAudioStreamRetain(PPDMIAUDIOCONNECTOR pInterface, PPDMAUDIOSTREAM pStream)
     790{
     791   AssertPtrReturn(pInterface, UINT32_MAX);
     792   AssertPtrReturn(pStream,    UINT32_MAX);
    793793
    794794   NOREF(pInterface);
     
    802802static DECLCALLBACK(uint32_t) drvAudioStreamRelease(PPDMIAUDIOCONNECTOR pInterface, PPDMAUDIOSTREAM pStream)
    803803{
    804    AssertPtrReturn(pInterface, VERR_INVALID_POINTER);
    805    AssertPtrReturn(pStream,    VERR_INVALID_POINTER);
     804   AssertPtrReturn(pInterface, UINT32_MAX);
     805   AssertPtrReturn(pStream,    UINT32_MAX);
    806806
    807807   NOREF(pInterface);
     
    18681868    AssertPtrReturn(pVol,       VERR_INVALID_POINTER);
    18691869
    1870     PDRVAUDIO pThis = PDMIAUDIOCONNECTOR_2_DRVAUDIO(pInterface);
    1871 
    18721870    LogFlowFunc(("%s: volL=%RU32, volR=%RU32, fMute=%RTbool\n", pStream->szName, pVol->uLeft, pVol->uRight, pVol->fMuted));
    18731871
     
    21502148    pThis->IAudioConnector.pfnStreamCreate      = drvAudioStreamCreate;
    21512149    pThis->IAudioConnector.pfnStreamDestroy     = drvAudioStreamDestroy;
    2152     pThis->IAudioConnector.pfnStreamAddRef      = drvAudioStreamAddRef;
     2150    pThis->IAudioConnector.pfnStreamRetain      = drvAudioStreamRetain;
    21532151    pThis->IAudioConnector.pfnStreamRelease     = drvAudioStreamRelease;
    21542152    pThis->IAudioConnector.pfnStreamControl     = drvAudioStreamControl;
  • trunk/src/VBox/Devices/EFI/DevEFI.cpp

    r61621 r62965  
    5454
    5555/* EFI includes */
     56#ifdef _MSC_VER
     57# pragma warning(push)
     58# pragma warning(disable:4668)
     59#endif
    5660#include <ProcessorBind.h>
     61#ifdef _MSC_VER
     62# pragma warning(pop)
     63#endif
    5764#include <Common/UefiBaseTypes.h>
    5865#include <Common/PiFirmwareVolume.h>
     
    10501057static DECLCALLBACK(void) efiInfoNvram(PPDMDEVINS pDevIns, PCDBGFINFOHLP pHlp, const char *pszArgs)
    10511058{
     1059    RT_NOREF(pszArgs);
    10521060    PDEVEFI pThis = PDMINS_2_DATA(pDevIns, PDEVEFI);
    10531061    PDMCritSectEnter(pDevIns->pCritSectRoR3, VERR_IGNORED);
     
    12131221        RTStrmClose(pStrm);
    12141222    }
     1223# else
     1224    RT_NOREF(pThis, pszFormat);
    12151225# endif
    12161226}
     
    12291239static int efiPortImageEventWrite(PDEVEFI pThis, uint32_t u32, unsigned cb)
    12301240{
     1241    RT_NOREF(cb);
    12311242    switch (u32 & EFI_IMAGE_EVT_CMD_MASK)
    12321243    {
     
    13421353static DECLCALLBACK(int) efiIOPortRead(PPDMDEVINS pDevIns, void *pvUser, RTIOPORT Port, uint32_t *pu32, unsigned cb)
    13431354{
     1355    RT_NOREF(pvUser);
    13441356    PDEVEFI pThis = PDMINS_2_DATA(pDevIns, PDEVEFI);
    13451357    Log4(("EFI in: %x %x\n", Port, cb));
     
    14271439static DECLCALLBACK(int) efiIOPortWrite(PPDMDEVINS pDevIns, void *pvUser, RTIOPORT Port, uint32_t u32, unsigned cb)
    14281440{
     1441    RT_NOREF(pvUser);
    14291442    PDEVEFI pThis = PDMINS_2_DATA(pDevIns, PDEVEFI);
    14301443    int     rc    = VINF_SUCCESS;
     
    17691782static DECLCALLBACK(void) efiMemSetup(PPDMDEVINS pDevIns, PDMDEVMEMSETUPCTX enmCtx)
    17701783{
     1784    RT_NOREF(enmCtx);
    17711785    PDEVEFI pThis = PDMINS_2_DATA(pDevIns, PDEVEFI);
    17721786
     
    19541968    AssertLogRelMsgReturn(!(pThis->cbEfiRom & PAGE_OFFSET_MASK), ("%RX64\n", pThis->cbEfiRom), VERR_INVALID_PARAMETER);
    19551969
    1956     uint8_t const * const pbFwVolEnd = pThis->pu8EfiRom + pFwVolHdr->FvLength;
    19571970    pThis->GCLoadAddress = UINT32_C(0xfffff000) - pThis->cbEfiRom + PAGE_SIZE;
    19581971
     
    19691982static int efiLoadRom(PDEVEFI pThis, PCFGMNODE pCfg)
    19701983{
     1984    RT_NOREF(pCfg);
     1985
    19711986    /*
    19721987     * Read the entire firmware volume into memory.
     
    21042119static DECLCALLBACK(int)  efiConstruct(PPDMDEVINS pDevIns, int iInstance, PCFGMNODE pCfg)
    21052120{
     2121    RT_NOREF(iInstance);
     2122    PDMDEV_CHECK_VERSIONS_RETURN(pDevIns);
    21062123    PDEVEFI     pThis = PDMINS_2_DATA(pDevIns, PDEVEFI);
    21072124    int         rc;
    2108     PDMDEV_CHECK_VERSIONS_RETURN(pDevIns);
    21092125
    21102126    Assert(iInstance == 0);
  • trunk/src/VBox/Devices/Storage/DrvSCSI.cpp

    r62506 r62965  
    240240static DECLCALLBACK(int) drvscsiGetSize(VSCSILUN hVScsiLun, void *pvScsiLunUser, uint64_t *pcbSize)
    241241{
     242    RT_NOREF(hVScsiLun);
    242243    PDRVSCSI pThis = (PDRVSCSI)pvScsiLunUser;
    243244
     
    250251static DECLCALLBACK(int) drvscsiGetSectorSize(VSCSILUN hVScsiLun, void *pvScsiLunUser, uint32_t *pcbSectorSize)
    251252{
     253    RT_NOREF(hVScsiLun);
    252254    PDRVSCSI pThis = (PDRVSCSI)pvScsiLunUser;
    253255
     
    258260static DECLCALLBACK(int) drvscsiSetLock(VSCSILUN hVScsiLun, void *pvScsiLunUser, bool fLocked)
    259261{
     262    RT_NOREF(hVScsiLun);
    260263    PDRVSCSI pThis = (PDRVSCSI)pvScsiLunUser;
    261264
     
    324327}
    325328
    326 static DECLCALLBACK(int) drvscsiReqTransferEnqueue(VSCSILUN hVScsiLun,
    327                                                    void *pvScsiLunUser,
    328                                                    VSCSIIOREQ hVScsiIoReq)
    329 {
     329static DECLCALLBACK(int) drvscsiReqTransferEnqueue(VSCSILUN hVScsiLun, void *pvScsiLunUser, VSCSIIOREQ hVScsiIoReq)
     330{
     331    RT_NOREF(hVScsiLun);
    330332    int rc = VINF_SUCCESS;
    331333    PDRVSCSI pThis = (PDRVSCSI)pvScsiLunUser;
     
    454456}
    455457
    456 static DECLCALLBACK(int) drvscsiGetFeatureFlags(VSCSILUN hVScsiLun,
    457                                                 void *pvScsiLunUser,
    458                                                 uint64_t *pfFeatures)
    459 {
    460     int rc = VINF_SUCCESS;
     458static DECLCALLBACK(int) drvscsiGetFeatureFlags(VSCSILUN hVScsiLun, void *pvScsiLunUser, uint64_t *pfFeatures)
     459{
     460    RT_NOREF(hVScsiLun);
    461461    PDRVSCSI pThis = (PDRVSCSI)pvScsiLunUser;
    462462
     
    478478
    479479static DECLCALLBACK(void) drvscsiVScsiReqCompleted(VSCSIDEVICE hVScsiDevice, void *pVScsiDeviceUser,
    480                                                    void *pVScsiReqUser, int rcScsiCode, bool fRedoPossible,
    481                                                    int rcReq)
    482 {
     480                                                   void *pVScsiReqUser, int rcScsiCode, bool fRedoPossible, int rcReq)
     481{
     482    RT_NOREF(hVScsiDevice);
    483483    PDRVSCSI pThis = (PDRVSCSI)pVScsiDeviceUser;
    484484
     
    567567static DECLCALLBACK(int) drvscsiAsyncIOLoopWakeup(PPDMDRVINS pDrvIns, PPDMTHREAD pThread)
    568568{
     569    RT_NOREF(pThread);
    569570    PDRVSCSI pThis = PDMINS_2_DATA(pDrvIns, PDRVSCSI);
    570571    PRTREQ pReq;
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