VirtualBox

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


Ignore:
Timestamp:
Oct 19, 2011 11:08:50 AM (13 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
74450
Message:

IPRT: Fixed unused variable warnings.

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

Legend:

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

    r33663 r39032  
    758758     */
    759759    PAVLPVNODECORE pNode = RTAvlPVRemove(&pDbgAs->ModTree, pMod->Core.Key);
    760     Assert(pNode == &pMod->Core);
     760    Assert(pNode == &pMod->Core); NOREF(pNode);
    761761
    762762    /*
     
    793793    /* remove from the tree */
    794794    PAVLRUINTPTRNODECORE pNode = RTAvlrUIntPtrRemove(&pDbgAs->MapTree, pMap->Core.Key);
    795     Assert(pNode == &pMap->Core);
     795    Assert(pNode == &pMap->Core); NOREF(pNode);
    796796
    797797    /* unlink */
  • trunk/src/VBox/Runtime/common/dbg/dbgmoddwarf.cpp

    r38620 r39032  
    19661966                                uint64_t uSeg = rtDwarfCursor_GetVarSizedU(pCursor, cbInstr - 1, UINT64_MAX);
    19671967                                Log2(("%08x: DW_LNE_set_segment: %ll#x - Watcom Extension\n", offOpCode, uSeg));
     1968                                NOREF(uSeg);
    19681969                                /** @todo make use of this? */
    19691970                            }
  • trunk/src/VBox/Runtime/common/ldr/ldrELFRelocatable.cpp.h

    r38581 r39032  
    692692    NOREF(pvBits);
    693693
    694     return VERR_NOT_IMPLEMENTED;
     694    return VERR_NOT_IMPLEMENTED; NOREF(pModElf);
    695695}
    696696
     
    701701    PRTLDRMODELF pModElf = (PRTLDRMODELF)pMod;
    702702
    703     return VERR_NOT_IMPLEMENTED;
     703    return VERR_NOT_IMPLEMENTED; NOREF(pModElf);
    704704}
    705705
     
    711711    PRTLDRMODELF pModElf = (PRTLDRMODELF)pMod;
    712712
    713     return VERR_NOT_IMPLEMENTED;
     713    return VERR_NOT_IMPLEMENTED; NOREF(pModElf);
    714714}
    715715
     
    720720    PRTLDRMODELF pModElf = (PRTLDRMODELF)pMod;
    721721
    722     return VERR_NOT_IMPLEMENTED;
     722    return VERR_NOT_IMPLEMENTED; NOREF(pModElf);
    723723}
    724724
     
    730730    PRTLDRMODELF pModElf = (PRTLDRMODELF)pMod;
    731731
    732     return VERR_NOT_IMPLEMENTED;
     732    return VERR_NOT_IMPLEMENTED; NOREF(pModElf);
    733733}
    734734
     
    740740    PRTLDRMODELF pModElf = (PRTLDRMODELF)pMod;
    741741
    742     return VERR_NOT_IMPLEMENTED;
     742    return VERR_NOT_IMPLEMENTED; NOREF(pModElf);
    743743}
    744744
  • trunk/src/VBox/Runtime/common/misc/circbuf.cpp

    r38862 r39032  
    206206    pBuf->offWrite = (pBuf->offWrite + cbSize) % pBuf->cbBuf;
    207207
    208     size_t cbOldIgnored = 0;
    209208    ASMAtomicAddZ(&pBuf->cbUsed, cbSize);
    210209}
  • trunk/src/VBox/Runtime/common/misc/getopt.cpp

    r38515 r39032  
    688688
    689689            uint32_t uIndex;
    690             char *pszRet = NULL;
    691690            if (RTStrToUInt32Full(&pszArgThis[cchLong], 10, &uIndex) == VINF_SUCCESS)
    692691                pState->uIndex = uIndex;
  • trunk/src/VBox/Runtime/common/misc/req.cpp

    r33595 r39032  
    453453RTDECL(int) RTReqAlloc(PRTREQQUEUE pQueue, PRTREQ *ppReq, RTREQTYPE enmType)
    454454{
    455     RT_EXPORT_SYMBOL(RTReqAlloc);
    456455    /*
    457456     * Validate input.
     
    573572    return VINF_SUCCESS;
    574573}
     574RT_EXPORT_SYMBOL(RTReqAlloc);
    575575
    576576
  • trunk/src/VBox/Runtime/common/path/RTPathAppendEx.cpp

    r34214 r39032  
    130130     * Balance slashes and check for buffer overflow.
    131131     */
    132     bool fAddSlash = false;
    133132    if (!RTPATH_IS_SLASH(pszPathEnd[-1]))
    134133    {
  • trunk/src/VBox/Runtime/common/string/RTStrCatP.cpp

    r36407 r39032  
    55
    66/*
    7  * Copyright (C) 2010 Oracle Corporation
     7 * Copyright (C) 2010-2011 Oracle Corporation
    88 *
    99 * This file is part of VirtualBox Open Source Edition (OSE), as
     
    3939     * a copy operation.
    4040     */
    41     size_t  cbDst  = *pcbDst;
    42     char   *pszDst = RTStrEnd(*ppszDst, *pcbDst);
     41    char   *pszDstOrg = *ppszDst;
     42    size_t  cbDst     = *pcbDst;
     43    char   *pszDst    = RTStrEnd(pszDstOrg, cbDst);
    4344    AssertReturn(pszDst, VERR_INVALID_PARAMETER);
    44     *pcbDst -= pszDst - *ppszDst;
    4545    *ppszDst = pszDst;
     46    *pcbDst  = cbDst - (pszDst - pszDstOrg);
    4647
    4748    return RTStrCopyP(ppszDst, pcbDst, pszSrc);
  • trunk/src/VBox/Runtime/common/vfs/vfsmemory.cpp

    r36555 r39032  
    548548                                              uint32_t *pfRetEvents)
    549549{
    550     PRTVFSMEMFILE pThis = (PRTVFSMEMFILE)pvThis;
    551     int           rc;
    552 
     550    int rc;
    553551    if (fEvents != RTPOLL_EVT_ERROR)
    554552    {
  • trunk/src/VBox/Runtime/common/vfs/vfsstdfile.cpp

    r37596 r39032  
    253253                                              uint32_t *pfRetEvents)
    254254{
    255     PRTVFSSTDFILE pThis = (PRTVFSSTDFILE)pvThis;
    256     int           rc;
    257 
     255    int rc;
    258256    if (fEvents != RTPOLL_EVT_ERROR)
    259257    {
     
    345343static DECLCALLBACK(int) rtVfsStdFile_SetOwner(void *pvThis, RTUID uid, RTGID gid)
    346344{
    347     PRTVFSSTDFILE pThis = (PRTVFSSTDFILE)pvThis;
    348345#if 0
     346    PRTVFSSTDFILE pThis = (PRTVFSSTDFILE)pvThis;
    349347    return RTFileSetOwner(pThis->hFile, uid, gid);
    350348#else
  • trunk/src/VBox/Runtime/common/zip/gzipvfs.cpp

    r34049 r39032  
    511511             *        be handed on to zlib later on.
    512512             */
    513             size_t cbRead = 0;
    514513            rc = RTVfsIoStrmRead(pThis->hVfsIos, pThis->abBuffer, sizeof(RTZIPGZIPHDR), true /*fBlocking*/, NULL /*pcbRead*/);
    515514            if (RT_SUCCESS(rc))
  • trunk/src/VBox/Runtime/common/zip/tar.cpp

    r35351 r39032  
    599599        uint64_t cbAllWritten = 0; /* Already copied */
    600600        uint64_t cbRead       = 0; /* Actually read in the last step */
    601         uint64_t cbWrite      = 0; /* Actually write in the last step */
    602601        for (;;)
    603602        {
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