VirtualBox

Changeset 85160 in vbox for trunk/src/VBox/Runtime/common


Ignore:
Timestamp:
Jul 10, 2020 9:01:02 AM (5 years ago)
Author:
vboxsync
Message:

*: Some missing DECLCALLBACK/RTDECL and related nothrow issues raised by Clang. bugref:9794 bugref:9790

Location:
trunk/src/VBox/Runtime/common
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/common/dbg/dbgmodcontainer.cpp

    r82968 r85160  
    993993 *                      created manually later on.
    994994 */
    995 int rtDbgModContainerCreate(PRTDBGMODINT pMod, RTUINTPTR cbSeg)
     995DECLHIDDEN(int) rtDbgModContainerCreate(PRTDBGMODINT pMod, RTUINTPTR cbSeg)
    996996{
    997997    PRTDBGMODCTN pThis = (PRTDBGMODCTN)RTMemAlloc(sizeof(*pThis));
  • trunk/src/VBox/Runtime/common/log/tracelogreader.cpp

    r85121 r85160  
    239239
    240240/*********************************************************************************************************************************
    241 *   Defined Constants And Macros                                                                                                 *
     241*   Internal Functions                                                                                                           *
    242242*********************************************************************************************************************************/
    243 
    244243static DECLCALLBACK(int) rtTraceLogRdrHdrRecvd(PRTTRACELOGRDRINT pThis, RTTRACELOGRDRPOLLEVT *penmEvt, bool *pfContinuePoll);
    245244static DECLCALLBACK(int) rtTraceLogRdrHdrDescRecvd(PRTTRACELOGRDRINT pThis, RTTRACELOGRDRPOLLEVT *penmEvt, bool *pfContinuePoll);
     
    256255/**
    257256 * State handlers.
    258  */
    259 static PFNRTTRACELOGRDRSTATEHANDLER g_apfnStateHandlers[] =
    260 {
    261     NULL,
    262     rtTraceLogRdrHdrRecvd,
    263     rtTraceLogRdrHdrDescRecvd,
    264     rtTraceLogRdrMagicRecvd,
    265     rtTraceLogRdrEvtDescRecvd,
    266     rtTraceLogRdrEvtDescIdRecvd,
    267     rtTraceLogRdrEvtDescDescriptionRecvd,
    268     rtTraceLogRdrEvtItemDescRecvd,
    269     rtTraceLogRdrEvtItemDescNameRecvd,
    270     rtTraceLogRdrEvtItemDescDescriptionRecvd,
    271     rtTraceLogRdrEvtMarkerRecvd,
    272     rtTraceLogRdrEvtDataRecvd,
    273     NULL
     257 * @note The struct wrapper is for working around a Clang nothrow attrib oddity.
     258 */
     259static struct { PFNRTTRACELOGRDRSTATEHANDLER pfn; } g_aStateHandlers[] =
     260{
     261    { NULL },
     262    { rtTraceLogRdrHdrRecvd },
     263    { rtTraceLogRdrHdrDescRecvd },
     264    { rtTraceLogRdrMagicRecvd },
     265    { rtTraceLogRdrEvtDescRecvd },
     266    { rtTraceLogRdrEvtDescIdRecvd },
     267    { rtTraceLogRdrEvtDescDescriptionRecvd },
     268    { rtTraceLogRdrEvtItemDescRecvd },
     269    { rtTraceLogRdrEvtItemDescNameRecvd },
     270    { rtTraceLogRdrEvtItemDescDescriptionRecvd },
     271    { rtTraceLogRdrEvtMarkerRecvd },
     272    { rtTraceLogRdrEvtDataRecvd },
     273    { NULL }
    274274};
    275275
     
    15701570            {
    15711571                /* Act according to the current state. */
    1572                 rc = g_apfnStateHandlers[pThis->enmState](pThis, penmEvt, &fContinue);
     1572                rc = g_aStateHandlers[pThis->enmState].pfn(pThis, penmEvt, &fContinue);
    15731573            }
    15741574            else
  • trunk/src/VBox/Runtime/common/path/RTPathParentLength.cpp

    r82968 r85160  
    8787 *          double-slash prefix as parent.
    8888 */
    89 size_t RTPathParentLength(const char *pszPath)
     89RTDECL(size_t) RTPathParentLength(const char *pszPath)
    9090{
    9191#if RTPATH_STYLE == RTPATH_STR_F_STYLE_DOS
  • trunk/src/VBox/Runtime/common/string/ministring.cpp

    r83252 r85160  
    11441144}
    11451145
    1146 const RTCString operator+(const RTCString &a_rStr1, const RTCString &a_rStr2)
     1146RTDECL(const RTCString) operator+(const RTCString &a_rStr1, const RTCString &a_rStr2)
    11471147{
    11481148    RTCString strRet(a_rStr1);
     
    11511151}
    11521152
    1153 const RTCString operator+(const RTCString &a_rStr1, const char *a_pszStr2)
     1153RTDECL(const RTCString) operator+(const RTCString &a_rStr1, const char *a_pszStr2)
    11541154{
    11551155    RTCString strRet(a_rStr1);
     
    11581158}
    11591159
    1160 const RTCString operator+(const char *a_psz1, const RTCString &a_rStr2)
     1160RTDECL(const RTCString) operator+(const char *a_psz1, const RTCString &a_rStr2)
    11611161{
    11621162    RTCString strRet(a_psz1);
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