VirtualBox

Changeset 85189 in vbox


Ignore:
Timestamp:
Jul 10, 2020 1:26:18 PM (5 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
139156
Message:

scm: Workaround for Clang 11 nothrow weirdness. bugref:9794

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bldprogs/scmsubversion.cpp

    r82968 r85189  
    776776                    unsigned    iLib;
    777777                    const char *pszSymbol;
    778                     PFNRT      *ppfn;
     778                    uintptr_t  *ppfn;   /**< The nothrow attrib of PFNRT goes down the wrong way with Clang 11, thus uintptr_t. */
    779779                } s_aSymbols[] =
    780780                {
    781                     { 2, "apr_initialize",              (PFNRT *)&g_pfnAprInitialize },
    782                     { 2, "apr_hash_first",              (PFNRT *)&g_pfnAprHashFirst },
    783                     { 2, "apr_hash_next",               (PFNRT *)&g_pfnAprHashNext },
    784                     { 2, "apr_hash_this_val",           (PFNRT *)&g_pfnAprHashThisVal },
    785                     { 1, "svn_pool_create_ex",          (PFNRT *)&g_pfnSvnPoolCreateEx },
    786                     { 2, "apr_pool_clear",              (PFNRT *)&g_pfnAprPoolClear },
    787                     { 2, "apr_pool_destroy",            (PFNRT *)&g_pfnAprPoolDestroy },
    788                     { 0, "svn_client_create_context",   (PFNRT *)&g_pfnSvnClientCreateContext },
    789                     { 0, "svn_client_propget4",         (PFNRT *)&g_pfnSvnClientPropGet4 },
     781                    { 2, "apr_initialize",              (uintptr_t *)&g_pfnAprInitialize },
     782                    { 2, "apr_hash_first",              (uintptr_t *)&g_pfnAprHashFirst },
     783                    { 2, "apr_hash_next",               (uintptr_t *)&g_pfnAprHashNext },
     784                    { 2, "apr_hash_this_val",           (uintptr_t *)&g_pfnAprHashThisVal },
     785                    { 1, "svn_pool_create_ex",          (uintptr_t *)&g_pfnSvnPoolCreateEx },
     786                    { 2, "apr_pool_clear",              (uintptr_t *)&g_pfnAprPoolClear },
     787                    { 2, "apr_pool_destroy",            (uintptr_t *)&g_pfnAprPoolDestroy },
     788                    { 0, "svn_client_create_context",   (uintptr_t *)&g_pfnSvnClientCreateContext },
     789                    { 0, "svn_client_propget4",         (uintptr_t *)&g_pfnSvnClientPropGet4 },
    790790                };
    791791                for (unsigned i = 0; i < RT_ELEMENTS(s_aSymbols); i++)
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