VirtualBox

Changeset 85182 in vbox


Ignore:
Timestamp:
Jul 10, 2020 1:20:54 PM (4 years ago)
Author:
vboxsync
Message:

pdmpcidev*.h: Workaround for Clang 11 nothrow weirdness. bugref:9794

Location:
trunk/include/VBox/vmm
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/VBox/vmm/pdmpcidev.h

    r85121 r85182  
    6060/** Pointer to a FNPCICONFIGREAD() function. */
    6161typedef FNPCICONFIGREAD *PFNPCICONFIGREAD;
     62#if !RT_CLANG_PREREQ(11, 0) /* Clang 11 (at least) has trouble with nothrow and pointers to function pointers. */
    6263/** Pointer to a PFNPCICONFIGREAD. */
    6364typedef PFNPCICONFIGREAD *PPFNPCICONFIGREAD;
     65#endif
    6466
    6567/**
     
    8587/** Pointer to a FNPCICONFIGWRITE() function. */
    8688typedef FNPCICONFIGWRITE *PFNPCICONFIGWRITE;
     89#if !RT_CLANG_PREREQ(11, 0) /* Clang 11 (at least) has trouble with nothrow and pointers to function pointers. */
    8790/** Pointer to a PFNPCICONFIGWRITE. */
    8891typedef PFNPCICONFIGWRITE *PPFNPCICONFIGWRITE;
     92#endif
    8993
    9094/**
  • trunk/include/VBox/vmm/pdmpcidevint.h

    r85121 r85182  
    8787/** Pointer to a FNPCICONFIGREAD() function. */
    8888typedef FNPCIBRIDGECONFIGREAD *PFNPCIBRIDGECONFIGREAD;
     89#if !RT_CLANG_PREREQ(11, 0) /* Clang 11 (at least) has trouble with nothrow and pointers to function pointers. */
    8990/** Pointer to a PFNPCICONFIGREAD. */
    9091typedef PFNPCIBRIDGECONFIGREAD *PPFNPCIBRIDGECONFIGREAD;
     92#endif
    9193
    9294/**
     
    106108/** Pointer to a FNPCICONFIGWRITE() function. */
    107109typedef FNPCIBRIDGECONFIGWRITE *PFNPCIBRIDGECONFIGWRITE;
     110#if !RT_CLANG_PREREQ(11, 0) /* Clang 11 (at least) has trouble with nothrow and pointers to function pointers. */
    108111/** Pointer to a PFNPCICONFIGWRITE. */
    109112typedef PFNPCIBRIDGECONFIGWRITE *PPFNPCIBRIDGECONFIGWRITE;
     113#endif
    110114
    111115/* Forward declaration */
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