VirtualBox

Changeset 83812 in vbox for trunk


Ignore:
Timestamp:
Apr 19, 2020 12:21:56 AM (5 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
137339
Message:

Devices/Audio: VC++ 14.1 warnings. bugref:8498

Location:
trunk/src/VBox/Devices/Audio
Files:
3 edited

Legend:

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

    r83298 r83812  
    32693269                u64Value  |= pThis->au32Regs[idxRegMem] & g_afMasks[cbBefore];
    32703270                Log4Func(("\tWithin register, supplied %u leading bits: %#llx -> %#llx ...\n",
    3271                           cbBefore * 8, ~g_afMasks[cbBefore] & u64Value, u64Value));
     3271                          cbBefore * 8, ~(uint64_t)g_afMasks[cbBefore] & u64Value, u64Value));
    32723272                STAM_COUNTER_INC(&pThis->CTX_SUFF_Z(StatRegMultiWrites));
    32733273            }
  • trunk/src/VBox/Devices/Audio/DrvHostDSound.cpp

    r83240 r83812  
    26822682            pThis->m_pNotificationClient = new VBoxMMNotificationClient();
    26832683
    2684             HRESULT hr = pThis->m_pNotificationClient->Initialize();
     2684            hr = pThis->m_pNotificationClient->Initialize();
    26852685            if (SUCCEEDED(hr))
    26862686                hr = pThis->m_pNotificationClient->Register();
     
    26892689                rc = VERR_AUDIO_BACKEND_INIT_FAILED;
    26902690        }
    2691         catch (std::bad_alloc &ex)
    2692         {
    2693             RT_NOREF(ex);
     2691        catch (std::bad_alloc &)
     2692        {
    26942693            rc = VERR_NO_MEMORY;
    26952694        }
  • trunk/src/VBox/Devices/Audio/VBoxMMNotificationClient.cpp

    r83239 r83812  
    2323#pragma warning(push)
    2424#pragma warning(disable: 4201)
     25#ifndef DOXYGEN_RUNNING
     26# if RT_MSC_PREREQ(RT_MSC_VER_VC141)
     27#  pragma warning(disable: 4091) /* v7.1\include\ksmedia.h(4356): warning C4091: 'typedef ': ignored on left of '<unnamed-enum-KSEVENT_DYNAMIC_FORMAT_CHANGE>' when no variable is declared */
     28# endif
     29#endif
    2530#include <mmdeviceapi.h>
    2631#include <endpointvolume.h>
     
    237242STDMETHODIMP VBoxMMNotificationClient::QueryInterface(REFIID interfaceID, void **ppvInterface)
    238243{
    239     const IID IID_IMMNotificationClient = __uuidof(IMMNotificationClient);
     244    const IID MY_IID_IMMNotificationClient = __uuidof(IMMNotificationClient);
    240245
    241246    if (   IsEqualIID(interfaceID, IID_IUnknown)
    242         || IsEqualIID(interfaceID, IID_IMMNotificationClient))
     247        || IsEqualIID(interfaceID, MY_IID_IMMNotificationClient))
    243248    {
    244249        *ppvInterface = static_cast<IMMNotificationClient*>(this);
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette