VirtualBox

Changeset 85193 in vbox


Ignore:
Timestamp:
Jul 10, 2020 3:09:57 PM (4 years ago)
Author:
vboxsync
Message:

VBoxDDUDeps.cpp,DevINIP.cpp: Workaround for Clang 11 nothrow bug/weirdness. bugref:9794

Location:
trunk/src/VBox/Devices
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Network/DevINIP.cpp

    r85121 r85193  
    131131 * using .a libraries for now.
    132132 */
    133 static const PFNRT g_pDevINILinkHack[] =
    134 {
    135     (PFNRT)lwip_socket,
    136     (PFNRT)lwip_close,
    137     (PFNRT)lwip_setsockopt,
    138     (PFNRT)lwip_recv,
    139     (PFNRT)lwip_send,
    140     (PFNRT)lwip_select
     133static const struct CLANG11WEIRDNESS { PFNRT pfn; } g_pDevINILinkHack[] =
     134{
     135    { (PFNRT)lwip_socket },
     136    { (PFNRT)lwip_close },
     137    { (PFNRT)lwip_setsockopt },
     138    { (PFNRT)lwip_recv },
     139    { (PFNRT)lwip_send },
     140    { (PFNRT)lwip_select },
    141141};
    142142
  • trunk/src/VBox/Devices/build/VBoxDDUDeps.cpp

    r82968 r85193  
    3434 * function pointers to code which is wanted in the link.
    3535 */
    36 PFNRT g_apfnVBoxDDUDeps[] =
     36struct CLANG11WEIRDNESS { PFNRT pfn; } g_apfnVBoxDDUDeps[] =
    3737{
    38     (PFNRT)VDInit,
    39     (PFNRT)VDIfCreateVfsStream,
    40     (PFNRT)VDIfCreateFromVfsStream,
    41     (PFNRT)VDCreateVfsFileFromDisk,
    42     (PFNRT)VDIfTcpNetInstDefaultCreate,
     38    { (PFNRT)VDInit },
     39    { (PFNRT)VDIfCreateVfsStream },
     40    { (PFNRT)VDIfCreateFromVfsStream },
     41    { (PFNRT)VDCreateVfsFileFromDisk },
     42    { (PFNRT)VDIfTcpNetInstDefaultCreate },
    4343#ifdef VBOX_WITH_USB
    44     (PFNRT)USBFilterInit,
    45     (PFNRT)USBLibHashSerial,
     44    { (PFNRT)USBFilterInit },
     45    { (PFNRT)USBLibHashSerial },
    4646# ifdef RT_OS_OS2
    47     (PFNRT)UsbOpen,
     47    { (PFNRT)UsbOpen },
    4848# endif
    4949# if defined(RT_OS_DARWIN) || defined(RT_OS_SOLARIS) || defined(RT_OS_WINDOWS) /* PORTME */
    50     (PFNRT)USBLibInit,
     50    { (PFNRT)USBLibInit },
    5151# endif
    5252#endif /* VBOX_WITH_USB */
    53     NULL
     53    { NULL },
    5454};
    5555
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