VirtualBox

Changeset 91514 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Oct 1, 2021 1:46:42 PM (3 years ago)
Author:
vboxsync
Message:

Main: bugref:9790 - Update the workaround for Clang nothrow/PPFN
issue. It was not fixed in 13.0 so drop that arm of the test. While
here, don't repeat the test two times in one file (though each file is
still on its own).

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

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/src-server/HostVideoInputDeviceImpl.cpp

    r91503 r91514  
    131131typedef FNVBOXHOSTWEBCAMLIST *PFNVBOXHOSTWEBCAMLIST;
    132132
    133 #if RT_CLANG_PREREQ(11, 0) && !RT_CLANG_PREREQ(13, 0) /*assuming this issue will be fixed eventually*/
     133
     134/*
     135 * Work around clang being unhappy about PFNVBOXHOSTWEBCAMLIST
     136 * ("exception specifications are not allowed beyond a single level of
     137 * indirection").  The original comment for 13.0 check said: "assuming
     138 * this issue will be fixed eventually".  Well, 13.0 is now out, and
     139 * it was not.
     140 */
     141#define CLANG_EXCEPTION_SPEC_HACK (RT_CLANG_PREREQ(11, 0) /* && !RT_CLANG_PREREQ(13, 0) */)
     142
     143#if CLANG_EXCEPTION_SPEC_HACK
    134144static int loadHostWebcamLibrary(const char *pszPath, RTLDRMOD *phmod, void **ppfn)
    135145#else
     
    189199        PFNVBOXHOSTWEBCAMLIST pfn = NULL;
    190200        RTLDRMOD hmod = NIL_RTLDRMOD;
    191 #if RT_CLANG_PREREQ(11, 0) && !RT_CLANG_PREREQ(13, 0) /*assuming this issue will be fixed eventually*/
     201#if CLANG_EXCEPTION_SPEC_HACK
    192202        int vrc = loadHostWebcamLibrary(strLibrary.c_str(), &hmod, (void **)&pfn);
    193203#else
  • trunk/src/VBox/Main/src-server/VRDEServerImpl.cpp

    r91503 r91514  
    451451}
    452452
    453 #if RT_CLANG_PREREQ(11, 0) && !RT_CLANG_PREREQ(13, 0) /*assuming this issue will be fixed eventually*/
     453/*
     454 * Work around clang being unhappy about PFNVRDESUPPORTEDPROPERTIES
     455 * ("exception specifications are not allowed beyond a single level of
     456 * indirection").  The original comment for 13.0 check said: "assuming
     457 * this issue will be fixed eventually".  Well, 13.0 is now out, and
     458 * it was not.
     459 */
     460#define CLANG_EXCEPTION_SPEC_HACK (RT_CLANG_PREREQ(11, 0) /* && !RT_CLANG_PREREQ(13, 0) */)
     461
     462#if CLANG_EXCEPTION_SPEC_HACK
    454463static int loadVRDELibrary(const char *pszLibraryName, RTLDRMOD *phmod, void *ppfn)
    455464#else
     
    547556        PFNVRDESUPPORTEDPROPERTIES pfn = NULL;
    548557        RTLDRMOD hmod = NIL_RTLDRMOD;
    549 #if RT_CLANG_PREREQ(11, 0) && !RT_CLANG_PREREQ(13, 0) /*assuming this issue will be fixed eventually*/
     558#if CLANG_EXCEPTION_SPEC_HACK
    550559        vrc = loadVRDELibrary(strVrdeLibrary.c_str(), &hmod, (void **)&pfn);
    551560#else
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