VirtualBox

Changeset 73104 in vbox for trunk/src/VBox/Main


Ignore:
Timestamp:
Jul 12, 2018 11:53:10 PM (7 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
123681
Message:

Main: Two clang build fixes (offset-of cleanup).

Location:
trunk/src/VBox/Main/src-client
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/src-client/DisplayImpl.cpp

    r73003 r73104  
    34243424        return VERR_INVALID_STATE;
    34253425
    3426     size_t cbData = RT_UOFFSETOF(VBOXCRCMDCTL_HGCM, aParms[5]);
     3426    size_t cbData = RT_UOFFSETOF_DYN(VBOXCRCMDCTL_HGCM, aParms[5]); /* (clang doesn't think this is a POD, thus _DYN.) */
    34273427    VBOXCRCMDCTL_HGCM *pData = (VBOXCRCMDCTL_HGCM *)alloca(cbData);
    34283428
  • trunk/src/VBox/Main/src-client/DrvAudioVideoRec.cpp

    r73097 r73104  
    264264    PDMIHOSTAUDIO        IHostAudio;
    265265    /** Pointer to the console object. */
    266     ComObjPtr<Console>   pConsole;
     266    ComPtr<Console>      pConsole;
    267267    /** Pointer to the DrvAudio port interface that is above us. */
    268268    PPDMIAUDIOCONNECTOR  pDrvAudio;
     
    272272
    273273/** Makes DRVAUDIOVIDEOREC out of PDMIHOSTAUDIO. */
    274 #define PDMIHOSTAUDIO_2_DRVAUDIOVIDEOREC(pInterface) \
    275     ( (PDRVAUDIOVIDEOREC)((uintptr_t)pInterface - RT_UOFFSETOF(DRVAUDIOVIDEOREC, IHostAudio)) )
     274#define PDMIHOSTAUDIO_2_DRVAUDIOVIDEOREC(pInterface) /* (clang doesn't think it is a POD, thus _DYN.) */ \
     275    ( (PDRVAUDIOVIDEOREC)((uintptr_t)pInterface - RT_UOFFSETOF_DYN(DRVAUDIOVIDEOREC, IHostAudio)) )
    276276
    277277/**
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