VirtualBox

Changeset 62921 in vbox for trunk


Ignore:
Timestamp:
Aug 3, 2016 2:43:39 PM (8 years ago)
Author:
vboxsync
Message:

Devices: warnings

File:
1 edited

Legend:

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

    r62919 r62921  
    631631int DrvAudioHlpSanitizeFileName(char *pszPath, size_t cbPath)
    632632{
     633    RT_NOREF(cbPath);
    633634    int rc = VINF_SUCCESS;
    634635#ifdef RT_OS_WINDOWS
     
    652653        rc = VERR_INVALID_UTF8_ENCODING;
    653654#else
    654     RT_NOREF()
     655    RT_NOREF(pszPath);
    655656#endif
    656657    return rc;
     
    679680    {
    680681        char szFilePath[RTPATH_MAX];
    681         size_t cchFilePath = RTStrPrintf(szFilePath, sizeof(szFilePath), "%s", pszPath);
     682        RTStrPrintf(szFilePath, sizeof(szFilePath), "%s", pszPath);
    682683
    683684        /* Create it when necessary. */
     
    756757    /** @todo Validate fOpen flags. */
    757758    AssertPtrReturn(pProps,  VERR_INVALID_POINTER);
    758     /** @todo Validate fFlags flags. */
     759    RT_NOREF(fFlags); /** @todo Validate fFlags flags. */
    759760
    760761    Assert(pProps->cChannels);
     
    861862size_t DrvAudioHlpWAVFileGetDataSize(PPDMAUDIOFILE pFile)
    862863{
    863     AssertPtrReturn(pFile, VERR_INVALID_POINTER);
     864    AssertPtrReturn(pFile, 0);
    864865
    865866    Assert(pFile->enmType == PDMAUDIOFILETYPE_WAV);
     
    879880 * @param   cbBuf               Size (in bytes) of audio data to write.
    880881 * @param   fFlags              Additional write flags. Not being used at the moment and must be 0.
    881  *
    882  * @remark
    883882 */
    884883int DrvAudioHlpWAVFileWrite(PPDMAUDIOFILE pFile, const void *pvBuf, size_t cbBuf, uint32_t fFlags)
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