VirtualBox

Changeset 62566 in vbox


Ignore:
Timestamp:
Jul 26, 2016 3:16:41 PM (8 years ago)
Author:
vboxsync
Message:

IPRT: More unused parameters.

Location:
trunk/src/VBox/Runtime
Files:
18 edited

Legend:

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

    r62564 r62566  
    740740{
    741741#ifdef IPRT_WITH_HTTP
    742     NOREF(pszUuidMappingSubDir); /** @todo do we bother trying pszUuidMappingSubDir? */
    743     NOREF(pszCacheSuffix); /** @todo do we bother trying pszUuidMappingSubDir? */
     742    RT_NOREF_PV(pszUuidMappingSubDir); /** @todo do we bother trying pszUuidMappingSubDir? */
     743    RT_NOREF_PV(pszCacheSuffix); /** @todo do we bother trying pszUuidMappingSubDir? */
     744    RT_NOREF_PV(fFlags);
    744745
    745746    if (pThis->fFlags & RTDBGCFG_FLAGS_NO_SYM_SRV)
  • trunk/src/VBox/Runtime/common/ldr/ldrPE.cpp

    r62564 r62566  
    23832383static void rtldrPE_VerifySignatureDestroy(PRTLDRMODPE pModPe, PRTLDRPESIGNATURE pSignature)
    23842384{
     2385    RT_NOREF_PV(pModPe);
    23852386    RTCrPkcs7ContentInfo_Delete(&pSignature->ContentInfo);
    23862387    RTMemTmpFree(pSignature);
     
    24012402    AssertReturn(pEntry->wCertificateType == WIN_CERT_TYPE_PKCS_SIGNED_DATA, VERR_INTERNAL_ERROR_2);
    24022403    AssertReturn(pEntry->wRevision        == WIN_CERT_REVISION_2_0, VERR_INTERNAL_ERROR_2);
     2404    RT_NOREF_PV(pModPe);
    24032405
    24042406    RTASN1CURSORPRIMARY PrimaryCursor;
  • trunk/src/VBox/Runtime/common/log/log.cpp

    r62477 r62566  
    851851        else
    852852            pLogger->pInt->cSecsHistoryTimeSlot = cSecsHistoryTimeSlot;
    853 # endif  /* IN_RING3 */
     853# else   /* !IN_RING3 */
     854        RT_NOREF_PV(pfnPhase); RT_NOREF_PV(cHistory); RT_NOREF_PV(cbHistoryFileMax); RT_NOREF_PV(cSecsHistoryTimeSlot);
     855# endif  /* !IN_RING3 */
    854856        if (pszGroupSettings)
    855857            RTLogGroupSettings(pLogger, pszGroupSettings);
     
    934936                    RTLogGroupSettings(pLogger, pszValue);
    935937            }
    936 # endif /* IN_RING3 */
     938# else  /* !IN_RING3 */
     939            RT_NOREF_PV(pszEnvVarBase); RT_NOREF_PV(pszFilenameFmt); RT_NOREF_PV(args);
     940# endif /* !IN_RING3 */
    937941
    938942            /*
  • trunk/src/VBox/Runtime/common/misc/aiomgr.cpp

    r62477 r62566  
    850850{
    851851    PRTAIOMGRINT pThis = (PRTAIOMGRINT)pvUser;
    852     bool fRunning = true;
     852    /*bool fRunning = true;*/
    853853    int rc = VINF_SUCCESS;
    854854
     
    879879            rc = rtAioMgrCheckFiles(pThis);
    880880        }
    881     } while (   fRunning
    882              && RT_SUCCESS(rc));
    883 
     881    } while (   /*fRunning - never modified
     882             && */ RT_SUCCESS(rc));
     883
     884    RT_NOREF_PV(hThreadSelf);
    884885    return rc;
    885886}
     
    10981099{
    10991100    PRTAIOMGRREQ pReq = (PRTAIOMGRREQ)pvObj;
     1101    RT_NOREF_PV(hMemCache); RT_NOREF_PV(pvUser);
    11001102
    11011103    memset(pReq, 0, sizeof(RTAIOMGRREQ));
     
    11141116    PRTAIOMGRREQ pReq = (PRTAIOMGRREQ)pvObj;
    11151117    int rc = RTFileAioReqDestroy(pReq->hReqIo);
    1116 
    11171118    AssertRC(rc);
     1119
     1120    RT_NOREF_PV(hMemCache); RT_NOREF_PV(pvUser);
    11181121}
    11191122
  • trunk/src/VBox/Runtime/common/zip/xarvfs.cpp

    r62477 r62566  
    14021402 * @interface_method_impl{RTVFSSYMLINKOPS,pfnRead}
    14031403 */
    1404 static DECLCALLBACK(int) rtZipXarFssSym_Read(void *pvThis, char *pszTarget, size_t cbXarget)
     1404static DECLCALLBACK(int) rtZipXarFssSym_Read(void *pvThis, char *pszTarget, size_t cbTarget)
    14051405{
    14061406    PRTZIPXARBASEOBJ pThis = (PRTZIPXARBASEOBJ)pvThis;
     
    14081408    return RTStrCopy(pszTarget, cbXarget, pThis->pXarReader->szTarget);
    14091409#else
     1410    RT_NOREF_PV(pThis); RT_NOREF_PV(pszTarget); RT_NOREF_PV(cbTarget);
    14101411    return VERR_NOT_IMPLEMENTED;
    14111412#endif
     
    18191820{
    18201821    int rc;
     1822    RT_NOREF_PV(pXarHdr);
    18211823
    18221824    /*
  • trunk/src/VBox/Runtime/generic/http-curl.cpp

    r62477 r62566  
    19561956    uint32_t const cBefore = RTCrStoreCertCount(hStore);
    19571957    AssertReturn(cBefore != UINT32_MAX, VERR_INVALID_HANDLE);
     1958    RT_NOREF_PV(fFlags);
     1959
    19581960
    19591961    /*
     
    21242126    PRTHTTPINTERNAL pThis = (PRTHTTPINTERNAL)pData;
    21252127    AssertReturn(pThis->u32Magic == RTHTTP_MAGIC, 1);
     2128    RT_NOREF_PV(rdTotalUpload);
     2129    RT_NOREF_PV(rdUploaded);
    21262130
    21272131    pThis->cbDownloadHint = (uint64_t)rdTotalDownload;
  • trunk/src/VBox/Runtime/r0drv/alloc-r0drv.cpp

    r62477 r62566  
    118118    PRTMEMHDR pHdr;
    119119    RT_ASSERT_INTS_ON();
     120    RT_NOREF_PV(pszTag);
    120121
    121122    pHdr = rtR0MemAlloc(cb + RTR0MEM_FENCE_EXTRA, 0);
     
    137138    PRTMEMHDR pHdr;
    138139    RT_ASSERT_INTS_ON();
     140    RT_NOREF_PV(pszTag);
    139141
    140142    pHdr = rtR0MemAlloc(cb + RTR0MEM_FENCE_EXTRA, RTMEMHDR_FLAG_ZEROED);
     
    285287    RT_ASSERT_PREEMPTIBLE();
    286288#endif
     289    RT_NOREF_PV(pszTag);
     290
    287291
    288292    pHdr = rtR0MemAlloc(cb + RTR0MEM_FENCE_EXTRA, RTMEMHDR_FLAG_EXEC);
     
    304308    PRTMEMHDR pHdr;
    305309    RT_ASSERT_INTS_ON();
     310    RT_NOREF_PV(cb);
    306311
    307312    if (!pv)
     
    335340    PRTMEMHDR   pHdr;
    336341    int         rc;
     342    RT_NOREF_PV(pszTag);
    337343
    338344    RT_ASSERT_PREEMPT_CPUID_VAR();
  • trunk/src/VBox/Runtime/r0drv/linux/alloc-r0drv-linux.c

    r62477 r62566  
    143143    return rc;
    144144#else
     145    RT_NOREF_PV(pvMemory); RT_NOREF_PV(cb);
    145146    return VERR_NOT_SUPPORTED;
    146147#endif
  • trunk/src/VBox/Runtime/r0drv/linux/semevent-r0drv-linux.c

    r62477 r62566  
    7474    PRTSEMEVENTINTERNAL pThis;
    7575    IPRT_LINUX_SAVE_EFL_AC();
     76    RT_NOREF_PV(hClass); RT_NOREF_PV(pszNameFmt);
    7677
    7778    AssertReturn(!(fFlags & ~(RTSEMEVENT_FLAGS_NO_LOCK_VAL | RTSEMEVENT_FLAGS_BOOTSTRAP_HACK)), VERR_INVALID_PARAMETER);
     
    184185{
    185186    int rc;
     187    RT_NOREF_PV(pSrcPos);
    186188
    187189    /*
  • trunk/src/VBox/Runtime/r0drv/linux/semeventmulti-r0drv-linux.c

    r62477 r62566  
    9797    PRTSEMEVENTMULTIINTERNAL pThis;
    9898    IPRT_LINUX_SAVE_EFL_AC();
     99    RT_NOREF_PV(hClass); RT_NOREF_PV(pszNameFmt);
    99100
    100101    AssertReturn(!(fFlags & ~RTSEMEVENTMULTI_FLAGS_NO_LOCK_VAL), VERR_INVALID_PARAMETER);
     
    249250    uint32_t    fOrgStateAndGen;
    250251    int         rc;
     252    RT_NOREF_PV(pSrcPos);
    251253
    252254    /*
  • trunk/src/VBox/Runtime/r0drv/linux/semmutex-r0drv-linux.c

    r62477 r62566  
    324324RTDECL(int) RTSemMutexRequestDebug(RTSEMMUTEX hMutexSem, RTMSINTERVAL cMillies, RTHCUINTPTR uId, RT_SRC_POS_DECL)
    325325{
     326    RT_NOREF_PV(uId); RT_SRC_POS_NOREF();
    326327    return RTSemMutexRequest(hMutexSem, cMillies);
    327328}
     
    338339RTDECL(int) RTSemMutexRequestNoResumeDebug(RTSEMMUTEX hMutexSem, RTMSINTERVAL cMillies, RTHCUINTPTR uId, RT_SRC_POS_DECL)
    339340{
     341    RT_NOREF_PV(uId); RT_SRC_POS_NOREF();
    340342    return RTSemMutexRequestNoResume(hMutexSem, cMillies);
    341343}
  • trunk/src/VBox/Runtime/r0drv/linux/spinlock-r0drv-linux.c

    r62477 r62566  
    7777    PRTSPINLOCKINTERNAL pThis;
    7878    AssertReturn(fFlags == RTSPINLOCK_FLAGS_INTERRUPT_SAFE || fFlags == RTSPINLOCK_FLAGS_INTERRUPT_UNSAFE, VERR_INVALID_PARAMETER);
     79    RT_NOREF_PV(pszName);
    7980
    8081    /*
  • trunk/src/VBox/Runtime/r0drv/linux/the-linux-kernel.h

    r62477 r62566  
    3535#define bool linux_bool
    3636
     37#if RT_GNUC_PREREQ(4, 6)
     38# pragma GCC diagnostic push
     39#endif
     40#if RT_GNUC_PREREQ(4, 2)
     41# pragma GCC diagnostic ignored "-Wunused-parameter"
     42#endif
     43
    3744#include <linux/version.h>
    3845#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 33)
     
    338345#undef bool
    339346
     347#if RT_GNUC_PREREQ(4, 6)
     348# pragma GCC diagnostic pop
     349#endif
     350
    340351/*
    341352 * There are post-2.6.24 kernels (confusingly with unchanged version number)
  • trunk/src/VBox/Runtime/r0drv/linux/thread2-r0drv-linux.c

    r62477 r62566  
    9191
    9292    sched_setscheduler(current, iSchedClass, &Param);
     93#else
     94    RT_NOREF_PV(enmType);
    9395#endif
     96    RT_NOREF_PV(pThread);
    9497
    9598    return VINF_SUCCESS;
     
    99102DECLHIDDEN(int) rtThreadNativeAdopt(PRTTHREADINT pThread)
    100103{
     104    RT_NOREF_PV(pThread);
    101105    return VERR_NOT_IMPLEMENTED;
    102106}
  • trunk/src/VBox/Runtime/r0drv/linux/threadctxhooks-r0drv-linux.c

    r62477 r62566  
    9999    stac();
    100100#endif
     101    RT_NOREF_PV(pNext);
    101102
    102103    AssertPtr(pThis);
     
    133134    stac();
    134135#endif
     136    RT_NOREF_PV(iCpu);
    135137
    136138    AssertPtr(pThis);
  • trunk/src/VBox/Runtime/r0drv/linux/timer-r0drv-linux.c

    r62477 r62566  
    11781178    PRTTIMERLINUXSTARTONCPUARGS pArgs = (PRTTIMERLINUXSTARTONCPUARGS)pvUser2;
    11791179    PRTTIMER pTimer = (PRTTIMER)pvUser1;
     1180    RT_NOREF_PV(idCpu);
    11801181    rtTimerLnxStartSubTimer(&pTimer->aSubTimers[0], pArgs->u64Now, pArgs->u64First, true /*fPinned*/, pTimer->fHighRes);
    11811182}
     
    16301631RTDECL(int) RTTimerRequestSystemGranularity(uint32_t u32Request, uint32_t *pu32Granted)
    16311632{
     1633    RT_NOREF_PV(u32Request); RT_NOREF_PV(*pu32Granted);
    16321634    return VERR_NOT_SUPPORTED;
    16331635}
     
    16371639RTDECL(int) RTTimerReleaseSystemGranularity(uint32_t u32Granted)
    16381640{
     1641    RT_NOREF_PV(u32Granted);
    16391642    return VERR_NOT_SUPPORTED;
    16401643}
  • trunk/src/VBox/Runtime/r0drv/memobj-r0drv.cpp

    r62477 r62566  
    427427    RT_ASSERT_PREEMPTIBLE();
    428428
     429    RT_NOREF_PV(pszTag);
     430
    429431    /* do the allocation. */
    430432    return rtR0MemObjNativeAllocPage(pMemObj, cbAligned, fExecutable);
     
    443445    RT_ASSERT_PREEMPTIBLE();
    444446
     447    RT_NOREF_PV(pszTag);
     448
    445449    /* do the allocation. */
    446450    return rtR0MemObjNativeAllocLow(pMemObj, cbAligned, fExecutable);
     
    458462    AssertReturn(cb <= cbAligned, VERR_INVALID_PARAMETER);
    459463    RT_ASSERT_PREEMPTIBLE();
     464
     465    RT_NOREF_PV(pszTag);
    460466
    461467    /* do the allocation. */
     
    481487    RT_ASSERT_PREEMPTIBLE();
    482488
     489    RT_NOREF_PV(pszTag);
     490
    483491    /* do the locking. */
    484492    return rtR0MemObjNativeLockUser(pMemObj, R3PtrAligned, cbAligned, fAccess, R0Process);
     
    501509    RT_ASSERT_PREEMPTIBLE();
    502510
     511    RT_NOREF_PV(pszTag);
     512
    503513    /* do the allocation. */
    504514    return rtR0MemObjNativeLockKernel(pMemObj, pvAligned, cbAligned, fAccess);
     
    517527    AssertReturn(PhysHighest >= cb, VERR_INVALID_PARAMETER);
    518528    RT_ASSERT_PREEMPTIBLE();
     529
     530    RT_NOREF_PV(pszTag);
    519531
    520532    /* do the allocation. */
     
    548560    RT_ASSERT_PREEMPTIBLE();
    549561
     562    RT_NOREF_PV(pszTag);
     563
    550564    /* do the allocation. */
    551565    return rtR0MemObjNativeAllocPhys(pMemObj, cbAligned, PhysHighest, uAlignment);
     
    564578    AssertReturn(PhysHighest >= cb, VERR_INVALID_PARAMETER);
    565579    RT_ASSERT_PREEMPTIBLE();
     580
     581    RT_NOREF_PV(pszTag);
    566582
    567583    /* do the allocation. */
     
    586602    RT_ASSERT_PREEMPTIBLE();
    587603
     604    RT_NOREF_PV(pszTag);
     605
    588606    /* do the allocation. */
    589607    return rtR0MemObjNativeEnterPhys(pMemObj, PhysAligned, cbAligned, uCachePolicy);
     
    606624        AssertReturn(!((uintptr_t)pvFixed & (uAlignment - 1)), VERR_INVALID_PARAMETER);
    607625    RT_ASSERT_PREEMPTIBLE();
     626
     627    RT_NOREF_PV(pszTag);
    608628
    609629    /* do the reservation. */
     
    630650        R0Process = RTR0ProcHandleSelf();
    631651    RT_ASSERT_PREEMPTIBLE();
     652
     653    RT_NOREF_PV(pszTag);
    632654
    633655    /* do the reservation. */
     
    675697    RT_ASSERT_PREEMPTIBLE();
    676698
     699    RT_NOREF_PV(pszTag);
     700
    677701    /* adjust the request to simplify the native code. */
    678702    if (offSub == 0 && cbSub == pMemToMap->cb)
     
    729753    RT_ASSERT_PREEMPTIBLE();
    730754
     755    RT_NOREF_PV(pszTag);
     756
    731757    /* do the mapping. */
    732758    rc = rtR0MemObjNativeMapUser(&pNew, pMemToMap, R3PtrFixed, uAlignment, fProt, R0Process);
  • trunk/src/VBox/Runtime/r3/xml.cpp

    r62477 r62566  
    14711471{
    14721472    m_pcszName = (const char *)pLibAttr->name;
     1473    RT_NOREF_PV(pElmRoot);
    14731474
    14741475    if (   pLibAttr->ns
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