Changeset 39083 in vbox for trunk/src/VBox/Runtime
- Timestamp:
- Oct 22, 2011 12:28:46 AM (13 years ago)
- Location:
- trunk/src/VBox/Runtime
- Files:
-
- 60 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/common/dbg/dbgmod.cpp
r38553 r39083 129 129 static DECLCALLBACK(void) rtDbgModTermCallback(RTTERMREASON enmReason, int32_t iStatus, void *pvUser) 130 130 { 131 NOREF(iStatus); NOREF(pvUser); 131 132 if (enmReason == RTTERMREASON_UNLOAD) 132 133 { … … 258 259 static DECLCALLBACK(int) rtDbgModInitOnce(void *pvUser1, void *pvUser2) 259 260 { 261 NOREF(pvUser1); NOREF(pvUser2); 262 260 263 /* 261 264 * Create the semaphore and string cache. … … 362 365 363 366 364 RTDECL(int) RTDbgModCreateDeferred(PRTDBGMOD phDbgMod, const char *pszFilename, const char *pszName, RTUINTPTR cb, uint32_t fFlags) 365 { 367 RTDECL(int) RTDbgModCreateDeferred(PRTDBGMOD phDbgMod, const char *pszFilename, const char *pszName, 368 RTUINTPTR cb, uint32_t fFlags) 369 { 370 NOREF(phDbgMod); NOREF(pszFilename); NOREF(pszName); NOREF(cb); NOREF(fFlags); 366 371 return VERR_NOT_IMPLEMENTED; 367 372 } … … 501 506 502 507 503 RTDECL(int) RTDbgModCreateFromMap(PRTDBGMOD phDbgMod, const char *pszFilename, const char *pszName, RTUINTPTR uSubtrahend, uint32_t fFlags) 508 RTDECL(int) RTDbgModCreateFromMap(PRTDBGMOD phDbgMod, const char *pszFilename, const char *pszName, 509 RTUINTPTR uSubtrahend, uint32_t fFlags) 504 510 { 505 511 /* … … 512 518 AssertPtrNullReturn(pszName, VERR_INVALID_POINTER); 513 519 AssertReturn(fFlags == 0, VERR_INVALID_PARAMETER); 520 AssertReturn(uSubtrahend == 0, VERR_NOT_IMPLEMENTED); /** @todo implement uSubtrahend. */ 514 521 515 522 int rc = rtDbgModLazyInit(); -
trunk/src/VBox/Runtime/common/dbg/dbgmodcontainer.cpp
r28800 r39083 400 400 pSymbol->cb = cb; 401 401 pSymbol->fFlags = fFlags; 402 pSymbol->NameCore.pszString = RTStrCacheEnter (g_hDbgModStrCache, pszSymbol);402 pSymbol->NameCore.pszString = RTStrCacheEnterN(g_hDbgModStrCache, pszSymbol, cchSymbol); 403 403 int rc; 404 404 if (pSymbol->NameCore.pszString) … … 604 604 pSym->NameCore.pszString = NULL; 605 605 RTMemFree(pSym); 606 NOREF(pvUser); 606 607 return 0; 607 608 } … … 638 639 static DECLCALLBACK(int) rtDbgModContainer_TryOpen(PRTDBGMODINT pMod) 639 640 { 641 NOREF(pMod); 640 642 return VERR_INTERNAL_ERROR_5; 641 643 } -
trunk/src/VBox/Runtime/common/dbg/dbgmoddwarf.cpp
r39070 r39083 827 827 Log(("Segment %.*s: LinkAddress=%#llx RVA=%#llx cb=%#llx\n", 828 828 pSeg->cchName, pSeg->pchName, (uint64_t)pSeg->LinkAddress, (uint64_t)pSeg->RVA, pSeg->cb)); 829 NOREF(hLdrMod); 829 830 RTLDRADDR cb = RT_MAX(pSeg->cb, pSeg->cbMapped); 830 831 #if 1 … … 922 923 static int rtDbgModDwarfStringToUtf8(PRTDBGMODDWARF pThis, char **ppsz) 923 924 { 925 /** @todo DWARF & UTF-8. */ 926 NOREF(pThis); 924 927 RTStrPurgeEncoding(*ppsz); 925 928 return VINF_SUCCESS; … … 1731 1734 ? pLnState->papszFileNames[pLnState->Regs.iFile] 1732 1735 : "<bad file name index>"; 1736 NOREF(offOpCode); 1737 1733 1738 RTDBGSEGIDX iSeg; 1734 1739 RTUINTPTR offSeg; … … 2437 2442 { 2438 2443 AssertReturn(ATTR_GET_SIZE(pDesc) == sizeof(RTDWARFADDR), VERR_INTERNAL_ERROR_3); 2444 NOREF(pDie); 2439 2445 2440 2446 uint64_t uAddr; … … 2465 2471 { 2466 2472 AssertReturn(ATTR_GET_SIZE(pDesc) == sizeof(bool), VERR_INTERNAL_ERROR_3); 2473 NOREF(pDie); 2467 2474 2468 2475 bool *pfMember = (bool *)pbMember; … … 2496 2503 AssertReturn(ATTR_GET_SIZE(pDesc) == sizeof(RTDWARFADDRRANGE), VERR_INTERNAL_ERROR_3); 2497 2504 AssertReturn(pDesc->uAttr == DW_AT_low_pc || pDesc->uAttr == DW_AT_high_pc, VERR_INTERNAL_ERROR_3); 2505 NOREF(pDie); 2498 2506 2499 2507 uint64_t uAddr; … … 2545 2553 AssertReturn(ATTR_GET_SIZE(pDesc) == sizeof(RTDWARFADDRRANGE), VERR_INTERNAL_ERROR_3); 2546 2554 AssertReturn(pDesc->uAttr == DW_AT_low_pc || pDesc->uAttr == DW_AT_high_pc, VERR_INTERNAL_ERROR_3); 2555 NOREF(pDie); 2547 2556 2548 2557 /* Decode it. */ … … 2658 2667 { 2659 2668 AssertReturn(ATTR_GET_SIZE(pDesc) == sizeof(RTDWARFREF), VERR_INTERNAL_ERROR_3); 2669 NOREF(pDie); 2660 2670 2661 2671 uint64_t off; … … 2699 2709 { 2700 2710 AssertReturn(ATTR_GET_SIZE(pDesc) == sizeof(const char *), VERR_INTERNAL_ERROR_3); 2711 NOREF(pDie); 2701 2712 2702 2713 switch (uForm) … … 2722 2733 uint32_t uForm, PRTDWARFCURSOR pCursor) 2723 2734 { 2735 NOREF(pDie); 2724 2736 uint64_t u64Val; 2725 2737 switch (uForm) … … 2888 2900 PCRTDWARFABBREV pAbbrev, PRTDWARFDIE pParent) 2889 2901 { 2902 NOREF(pThis); 2890 2903 Assert(pDieDesc->cbDie >= sizeof(RTDWARFDIE)); 2891 2904 PRTDWARFDIE pDie = (PRTDWARFDIE)RTMemAllocZ(pDieDesc->cbDie); … … 3282 3295 { 3283 3296 PRTDBGMODDWARF pThis = (PRTDBGMODDWARF)pMod->pvDbgPriv; 3297 Assert(!pszFile[cchFile]); NOREF(cchFile); 3284 3298 return RTDbgModLineAdd(pThis->hCnt, pszFile, uLineNo, iSeg, off, piOrdinal); 3285 3299 } … … 3327 3341 { 3328 3342 PRTDBGMODDWARF pThis = (PRTDBGMODDWARF)pMod->pvDbgPriv; 3343 Assert(!pszSymbol[cchSymbol]); NOREF(cchSymbol); 3329 3344 return RTDbgModSymbolAdd(pThis->hCnt, pszSymbol, iSeg, off, cb, fFlags, piOrdinal); 3330 3345 } … … 3352 3367 { 3353 3368 PRTDBGMODDWARF pThis = (PRTDBGMODDWARF)pMod->pvDbgPriv; 3369 Assert(!pszName[cchName]); NOREF(cchName); 3354 3370 return RTDbgModSegmentAdd(pThis->hCnt, uRva, cb, pszName, fFlags, piSeg); 3355 3371 } … … 3397 3413 const char *pszExtFile, void *pvUser) 3398 3414 { 3415 NOREF(hLdrMod); NOREF(iDbgInfo); NOREF(iMajorVer); NOREF(iMinorVer); NOREF(LinkAddress); 3416 3399 3417 /* 3400 3418 * Skip stuff we can't handle. -
trunk/src/VBox/Runtime/common/dbg/dbgmodldr.cpp
r38581 r39083 64 64 static DECLCALLBACK(int) rtDbgModLdr_UnmapPart(PRTDBGMODINT pMod, size_t cb, void const **ppvMap) 65 65 { 66 NOREF(pMod); NOREF(cb); 66 67 RTMemFree((void *)*ppvMap); 67 68 *ppvMap = NULL; -
trunk/src/VBox/Runtime/common/dbg/dbgmodnm.cpp
r38515 r39083 86 86 { 87 87 PRTDBGMODNM pThis = (PRTDBGMODNM)pMod->pvDbgPriv; 88 Assert(!pszFile[cchFile]); NOREF(cchFile); 88 89 return RTDbgModLineAdd(pThis->hCnt, pszFile, uLineNo, iSeg, off, piOrdinal); 89 90 } … … 100 101 101 102 /** @interface_method_impl{RTDBGMODVTDBG,pfnSymbolByName} */ 102 static DECLCALLBACK(int) rtDbgModNm_SymbolByName(PRTDBGMODINT pMod, const char *pszSymbol, size_t cchSymbol, PRTDBGSYMBOL pSymInfo) 103 { 104 PRTDBGMODNM pThis = (PRTDBGMODNM)pMod->pvDbgPriv; 103 static DECLCALLBACK(int) rtDbgModNm_SymbolByName(PRTDBGMODINT pMod, const char *pszSymbol, size_t cchSymbol, 104 PRTDBGSYMBOL pSymInfo) 105 { 106 PRTDBGMODNM pThis = (PRTDBGMODNM)pMod->pvDbgPriv; 107 Assert(!pszSymbol[cchSymbol]); NOREF(cchSymbol); 105 108 return RTDbgModSymbolByName(pThis->hCnt, pszSymbol, pSymInfo); 106 109 } … … 129 132 { 130 133 PRTDBGMODNM pThis = (PRTDBGMODNM)pMod->pvDbgPriv; 134 Assert(!pszSymbol[cchSymbol]); NOREF(cchSymbol); 131 135 return RTDbgModSymbolAdd(pThis->hCnt, pszSymbol, iSeg, off, cb, fFlags, piOrdinal); 132 136 } … … 150 154 151 155 /** @interface_method_impl{RTDBGMODVTDBG,pfnSegmentAdd} */ 152 static DECLCALLBACK(int) rtDbgModNm_SegmentAdd(PRTDBGMODINT pMod, RTUINTPTR uRva, RTUINTPTR cb, const char *pszName, size_t cchName, 153 uint32_t fFlags, PRTDBGSEGIDX piSeg) 154 { 155 PRTDBGMODNM pThis = (PRTDBGMODNM)pMod->pvDbgPriv; 156 static DECLCALLBACK(int) rtDbgModNm_SegmentAdd(PRTDBGMODINT pMod, RTUINTPTR uRva, RTUINTPTR cb, const char *pszName, 157 size_t cchName, uint32_t fFlags, PRTDBGSEGIDX piSeg) 158 { 159 PRTDBGMODNM pThis = (PRTDBGMODNM)pMod->pvDbgPriv; 160 Assert(!pszName[cchName]); NOREF(cchName); 156 161 return RTDbgModSegmentAdd(pThis->hCnt, uRva, cb, pszName, fFlags, piSeg); 157 162 } -
trunk/src/VBox/Runtime/common/dvm/dvmbsdlabel.cpp
r37423 r39083 328 328 DECLCALLBACK(int) rtDvmFmtBsdLblInitialize(PCRTDVMDISK pDisk, PRTDVMFMT phVolMgrFmt) 329 329 { 330 NOREF(pDisk); NOREF(phVolMgrFmt); 330 331 return VERR_NOT_IMPLEMENTED; 331 332 } … … 449 450 DECLCALLBACK(int) rtDvmFmtBsdLblVolumeQueryName(RTDVMVOLUMEFMT hVolFmt, char **ppszVolName) 450 451 { 452 NOREF(hVolFmt); NOREF(ppszVolName); 453 return VERR_NOT_SUPPORTED; 454 } 455 456 DECLCALLBACK(RTDVMVOLTYPE) rtDvmFmtBsdLblVolumeGetType(RTDVMVOLUMEFMT hVolFmt) 457 { 451 458 NOREF(hVolFmt); 452 return VERR_NOT_SUPPORTED;453 }454 455 DECLCALLBACK(RTDVMVOLTYPE) rtDvmFmtBsdLblVolumeGetType(RTDVMVOLUMEFMT hVolFmt)456 {457 459 return RTDVMVOLTYPE_UNKNOWN; 458 460 } -
trunk/src/VBox/Runtime/common/dvm/dvmgpt.cpp
r37024 r39083 325 325 static DECLCALLBACK(int) rtDvmFmtGptInitialize(PCRTDVMDISK pDisk, PRTDVMFMT phVolMgrFmt) 326 326 { 327 NOREF(pDisk); NOREF(phVolMgrFmt); 327 328 return VERR_NOT_IMPLEMENTED; 328 329 } -
trunk/src/VBox/Runtime/common/dvm/dvmmbr.cpp
r37024 r39083 323 323 static DECLCALLBACK(int) rtDvmFmtMbrVolumeQueryName(RTDVMVOLUMEFMT hVolFmt, char **ppszVolName) 324 324 { 325 NOREF(hVolFmt); 325 NOREF(hVolFmt); NOREF(ppszVolName); 326 326 return VERR_NOT_SUPPORTED; 327 327 } -
trunk/src/VBox/Runtime/common/ldr/ldrELFRelocatable.cpp.h
r39032 r39083 264 264 const void *pvRelocs, Elf_Size cbRelocs) 265 265 { 266 #if ELF_MODE != 32 267 NOREF(pu8SecBaseR); 268 #endif 269 266 270 /* 267 271 * Iterate the relocations. … … 423 427 static DECLCALLBACK(int) RTLDRELF_NAME(Done)(PRTLDRMODINTERNAL pMod) 424 428 { 425 //PRTLDRMODELF pModElf = (PRTLDRMODELF)pMod;429 NOREF(pMod); /*PRTLDRMODELF pModElf = (PRTLDRMODELF)pMod;*/ 426 430 /** @todo Have to think more about this .... */ 427 431 return -1; … … 434 438 { 435 439 PRTLDRMODELF pModElf = (PRTLDRMODELF)pMod; 440 NOREF(pvBits); 436 441 437 442 /* … … 550 555 551 556 /** @copydoc RTLDROPS::Relocate */ 552 static DECLCALLBACK(int) RTLDRELF_NAME(Relocate)(PRTLDRMODINTERNAL pMod, void *pvBits, RTUINTPTR NewBaseAddress, RTUINTPTR OldBaseAddress, PFNRTLDRIMPORT pfnGetImport, void *pvUser) 557 static DECLCALLBACK(int) RTLDRELF_NAME(Relocate)(PRTLDRMODINTERNAL pMod, void *pvBits, RTUINTPTR NewBaseAddress, 558 RTUINTPTR OldBaseAddress, PFNRTLDRIMPORT pfnGetImport, void *pvUser) 553 559 { 554 560 PRTLDRMODELF pModElf = (PRTLDRMODELF)pMod; 561 NOREF(OldBaseAddress); 555 562 556 563 /* … … 692 699 NOREF(pvBits); 693 700 694 return VERR_NOT_IMPLEMENTED; NOREF(pModElf); 701 return VERR_NOT_IMPLEMENTED; NOREF(pModElf); NOREF(pfnCallback); NOREF(pvUser); 695 702 } 696 703 … … 701 708 PRTLDRMODELF pModElf = (PRTLDRMODELF)pMod; 702 709 703 return VERR_NOT_IMPLEMENTED; NOREF(pModElf); 710 return VERR_NOT_IMPLEMENTED; NOREF(pModElf); NOREF(pfnCallback); NOREF(pvUser); 704 711 } 705 712 … … 711 718 PRTLDRMODELF pModElf = (PRTLDRMODELF)pMod; 712 719 713 return VERR_NOT_IMPLEMENTED; NOREF(pModElf); 720 return VERR_NOT_IMPLEMENTED; NOREF(pModElf); NOREF(LinkAddress); NOREF(piSeg); NOREF(poffSeg); 714 721 } 715 722 … … 720 727 PRTLDRMODELF pModElf = (PRTLDRMODELF)pMod; 721 728 722 return VERR_NOT_IMPLEMENTED; NOREF(pModElf); 729 return VERR_NOT_IMPLEMENTED; NOREF(pModElf); NOREF(LinkAddress); NOREF(pRva); 723 730 } 724 731 … … 730 737 PRTLDRMODELF pModElf = (PRTLDRMODELF)pMod; 731 738 732 return VERR_NOT_IMPLEMENTED; NOREF(pModElf); 739 return VERR_NOT_IMPLEMENTED; NOREF(pModElf); NOREF(iSeg); NOREF(offSeg); NOREF(pRva); 733 740 } 734 741 … … 740 747 PRTLDRMODELF pModElf = (PRTLDRMODELF)pMod; 741 748 742 return VERR_NOT_IMPLEMENTED; NOREF(pModElf); 749 return VERR_NOT_IMPLEMENTED; NOREF(pModElf); NOREF(Rva); NOREF(piSeg); NOREF(poffSeg); 743 750 } 744 751 … … 783 790 * @param cbRawImage The size of the raw image. 784 791 */ 785 static int RTLDRELF_NAME(ValidateElfHeader)(const Elf_Ehdr *pEhdr, const char *pszLogName, uint64_t cbRawImage, PRTLDRARCH penmArch) 792 static int RTLDRELF_NAME(ValidateElfHeader)(const Elf_Ehdr *pEhdr, const char *pszLogName, uint64_t cbRawImage, 793 PRTLDRARCH penmArch) 786 794 { 787 795 Log3(("RTLdrELF: e_ident: %.*Rhxs\n" … … 808 816 ) 809 817 { 810 Log(("RTLdrELF: %s: Invalid ELF magic (%.*Rhxs)\n", pszLogName, sizeof(pEhdr->e_ident), pEhdr->e_ident)); 818 Log(("RTLdrELF: %s: Invalid ELF magic (%.*Rhxs)\n", pszLogName, sizeof(pEhdr->e_ident), pEhdr->e_ident)); NOREF(pszLogName); 811 819 return VERR_BAD_EXE_FORMAT; 812 820 } … … 982 990 { 983 991 Log(("RTLdrELF: %s: Shdr #%d: sh_link (%d) is beyond the end of the section table (%d)!\n", 984 pszLogName, iShdr, pShdr->sh_link, pModElf->Ehdr.e_shnum)); 992 pszLogName, iShdr, pShdr->sh_link, pModElf->Ehdr.e_shnum)); NOREF(pszLogName); 985 993 return VERR_BAD_EXE_FORMAT; 986 994 } … … 1059 1067 const char *pszLogName = pReader->pfnLogName(pReader); 1060 1068 RTFOFF cbRawImage = pReader->pfnSize(pReader); 1069 AssertReturn(!fFlags, VERR_INVALID_PARAMETER); 1061 1070 1062 1071 /* -
trunk/src/VBox/Runtime/common/ldr/ldrFile.cpp
r37596 r39083 176 176 } 177 177 178 NOREF(pvBits); 178 179 return VINF_SUCCESS; 179 180 } -
trunk/src/VBox/Runtime/common/ldr/ldrNative.cpp
r38581 r39083 44 44 45 45 /** @copydoc RTLDROPS::pfnEnumSymbols */ 46 static DECLCALLBACK(int) rtldrNativeEnumSymbols(PRTLDRMODINTERNAL pMod, unsigned fFlags, const void *pvBits, RTUINTPTR BaseAddress, 47 PFNRTLDRENUMSYMS pfnCallback, void *pvUser) 48 { 46 static DECLCALLBACK(int) rtldrNativeEnumSymbols(PRTLDRMODINTERNAL pMod, unsigned fFlags, const void *pvBits, 47 RTUINTPTR BaseAddress, PFNRTLDRENUMSYMS pfnCallback, void *pvUser) 48 { 49 NOREF(pMod); NOREF(fFlags); NOREF(pvBits); NOREF(BaseAddress); NOREF(pfnCallback); NOREF(pvUser); 49 50 return VERR_NOT_SUPPORTED; 50 51 } … … 54 55 static DECLCALLBACK(int) rtldrNativeDone(PRTLDRMODINTERNAL pMod) 55 56 { 57 NOREF(pMod); 56 58 return VINF_SUCCESS; 57 59 } -
trunk/src/VBox/Runtime/common/ldr/ldrPE.cpp
r38581 r39083 672 672 { 673 673 PRTLDRMODPE pModPe = (PRTLDRMODPE)pMod; 674 NOREF(fFlags); /* ignored ... */ 674 675 675 676 /* … … 772 773 PFNRTLDRENUMDBG pfnCallback, void *pvUser) 773 774 { 775 NOREF(pMod); NOREF(pvBits); NOREF(pfnCallback); NOREF(pvUser); 774 776 return VINF_NOT_SUPPORTED; 775 777 } … … 779 781 static DECLCALLBACK(int) rtldrPE_EnumSegments(PRTLDRMODINTERNAL pMod, PFNRTLDRENUMSEGS pfnCallback, void *pvUser) 780 782 { 783 NOREF(pMod); NOREF(pfnCallback); NOREF(pvUser); 781 784 return VINF_NOT_SUPPORTED; 782 785 } … … 787 790 uint32_t *piSeg, PRTLDRADDR poffSeg) 788 791 { 792 NOREF(pMod); NOREF(LinkAddress); NOREF(piSeg); NOREF(poffSeg); 789 793 return VERR_NOT_IMPLEMENTED; 790 794 } … … 794 798 static DECLCALLBACK(int) rtldrPE_LinkAddressToRva(PRTLDRMODINTERNAL pMod, RTLDRADDR LinkAddress, PRTLDRADDR pRva) 795 799 { 800 NOREF(pMod); NOREF(LinkAddress); NOREF(pRva); 796 801 return VERR_NOT_IMPLEMENTED; 797 802 } … … 802 807 PRTLDRADDR pRva) 803 808 { 809 NOREF(pMod); NOREF(iSeg); NOREF(offSeg); NOREF(pRva); 804 810 return VERR_NOT_IMPLEMENTED; 805 811 } … … 810 816 uint32_t *piSeg, PRTLDRADDR poffSeg) 811 817 { 818 NOREF(pMod); NOREF(Rva); NOREF(piSeg); NOREF(poffSeg); 812 819 return VERR_NOT_IMPLEMENTED; 813 820 } … … 1557 1564 int rtldrPEOpen(PRTLDRREADER pReader, uint32_t fFlags, RTLDRARCH enmArch, RTFOFF offNtHdrs, PRTLDRMOD phLdrMod) 1558 1565 { 1566 AssertReturn(!fFlags, VERR_INVALID_PARAMETER); 1567 1559 1568 /* 1560 1569 * Read and validate the file header. -
trunk/src/VBox/Runtime/common/ldr/ldrkStuff.cpp
r38581 r39083 232 232 static int rtkldrRdr_Create( PPKRDR ppRdr, const char *pszFilename) 233 233 { 234 NOREF(ppRdr); NOREF(pszFilename); 234 235 AssertReleaseFailed(); 235 236 return -1; … … 300 301 static KIPTR rtkldrRdr_NativeFH(PKRDR pRdr) 301 302 { 303 NOREF(pRdr); 302 304 AssertFailed(); 303 305 return -1; … … 308 310 static KSIZE rtkldrRdr_PageSize(PKRDR pRdr) 309 311 { 312 NOREF(pRdr); 310 313 return PAGE_SIZE; 311 314 } … … 316 319 { 317 320 //PRTLDRREADER pReader = ((PRTKLDRRDR)pRdr)->pReader; 321 NOREF(pRdr); NOREF(ppvBase); NOREF(cSegments); NOREF(paSegments); NOREF(fFixed); 318 322 AssertFailed(); 319 323 return -1; … … 325 329 { 326 330 //PRTLDRREADER pReader = ((PRTKLDRRDR)pRdr)->pReader; 331 NOREF(pRdr); NOREF(pvBase); NOREF(cSegments); NOREF(paSegments); 327 332 AssertFailed(); 328 333 return -1; … … 334 339 { 335 340 //PRTLDRREADER pReader = ((PRTKLDRRDR)pRdr)->pReader; 341 NOREF(pRdr); NOREF(pvBase); NOREF(cSegments); NOREF(paSegments); NOREF(fUnprotectOrProtect); 336 342 AssertFailed(); 337 343 return -1; … … 343 349 { 344 350 //PRTLDRREADER pReader = ((PRTKLDRRDR)pRdr)->pReader; 351 NOREF(pRdr); NOREF(pvBase); NOREF(cSegments); NOREF(paSegments); 345 352 AssertFailed(); 346 353 return -1; … … 350 357 static void rtkldrRdr_Done( PKRDR pRdr) 351 358 { 359 NOREF(pRdr); 352 360 //PRTLDRREADER pReader = ((PRTKLDRRDR)pRdr)->pReader; 353 361 } … … 409 417 { 410 418 PRTLDRMODKLDRARGS pArgs = (PRTLDRMODKLDRARGS)pvUser; 419 NOREF(pMod); NOREF(pszVersion); NOREF(fKind); 411 420 412 421 /* If not zero terminated we'll have to use a temporary buffer. */ … … 468 477 { 469 478 PRTLDRMODKLDRARGS pArgs = (PRTLDRMODKLDRARGS)pvUser; 479 NOREF(pMod); NOREF(pszVersion); NOREF(pfKind); 470 480 471 481 /* If not zero terminated we'll have to use a temporary buffer. */ … … 587 597 { 588 598 PRTLDRMODKLDRARGS pArgs = (PRTLDRMODKLDRARGS)pvUser; 599 NOREF(pMod); 589 600 590 601 RTLDRDBGINFOTYPE enmMyType; -
trunk/src/VBox/Runtime/common/log/log.cpp
r39070 r39083 308 308 return rc; 309 309 } 310 #else 311 NOREF(pLogger); 310 312 #endif 311 313 return VINF_SUCCESS; … … 322 324 if (pLogger->pInt->hSpinMtx != NIL_RTSEMSPINMUTEX) 323 325 RTSemSpinMutexRelease(pLogger->pInt->hSpinMtx); 326 #else 327 NOREF(pLogger); 324 328 #endif 325 329 return; -
trunk/src/VBox/Runtime/common/log/logcom.cpp
r29271 r39083 102 102 static DECLCALLBACK(size_t) rtLogComOutput(void *pv, const char *pachChars, size_t cbChars) 103 103 { 104 NOREF(pv); 104 105 if (cbChars) 105 106 RTLogWriteCom(pachChars, cbChars); -
trunk/src/VBox/Runtime/common/log/logellipsis.cpp
r33540 r39083 57 57 #endif 58 58 va_end(args); 59 NOREF(pvCallerRet); 59 60 } 60 61 RT_EXPORT_SYMBOL(RTLogLogger); -
trunk/src/VBox/Runtime/common/log/logformat.cpp
r33496 r39083 94 94 AssertMsgFailed(("Invalid logger format type '%%%c%.10s'!\n", ch, *ppszFormat)); NOREF(ch); 95 95 96 NOREF(pvArg); NOREF(pfnOutput); NOREF(pvArgOutput); NOREF(pArgs); NOREF(cchWidth); 97 NOREF(cchPrecision); NOREF(fFlags); NOREF(chArgSize); 96 98 return 0; 97 99 } -
trunk/src/VBox/Runtime/common/log/tracebuf.cpp
r37409 r39083 256 256 pszBuf += cchPos; \ 257 257 cchBuf -= cchPos; \ 258 NOREF(pszFunction); \ 258 259 } while (0) 259 260 -
trunk/src/VBox/Runtime/common/misc/lockvalidator.cpp
r39071 r39083 1392 1392 bool fAutodidacticism, PCRTLOCKVALSRCPOS pSrcPos) 1393 1393 { 1394 NOREF(pSrcPos); 1394 1395 if (!RTCritSectIsInitialized(&g_LockValClassTeachCS)) 1395 1396 rtLockValidatorLazyInit(); -
trunk/src/VBox/Runtime/common/misc/s3.cpp
r38734 r39083 281 281 } 282 282 283 static size_t rtS3WriteNothingCallback(void *pvBuf, size_t cSize, size_t cBSize, void *pvUser) 284 { 285 return cSize*cBSize; 283 static size_t rtS3WriteNothingCallback(void *pvBuf, size_t cbItem, size_t cItems, void *pvUser) 284 { 285 NOREF(pvBuf); NOREF(pvUser); 286 return cbItem * cItems; 286 287 } 287 288 -
trunk/src/VBox/Runtime/common/misc/thread.cpp
r38636 r39083 1326 1326 if (RT_SUCCESS(rc)) /* hide any warnings */ 1327 1327 return VINF_SUCCESS; 1328 NOREF(pvUser); 1328 1329 return rc; 1329 1330 } -
trunk/src/VBox/Runtime/common/path/rtPathVolumeSpecLen.cpp
r28800 r39083 63 63 /// @todo (dmik) well, it's better to consider there's no volume name 64 64 // at all on *nix systems 65 NOREF(pszPath); 65 66 return 0; 66 67 // return pszPath && pszPath[0] == '/'; -
trunk/src/VBox/Runtime/common/string/RTStrConvertHexBytes.cpp
r28800 r39083 42 42 43 43 AssertFailed(); 44 return VERR_NOT_IMPLEMENTED; 44 return VERR_NOT_IMPLEMENTED; NOREF(pv); NOREF(cb); NOREF(fFlags); 45 45 } 46 46 -
trunk/src/VBox/Runtime/common/string/strformatnum.cpp
r35585 r39083 156 156 signed int cchWidth, signed int cchPrecision, uint32_t fFlags) 157 157 { 158 NOREF(cchWidth); NOREF(cchPrecision); 158 159 if (uiBase != 16) 159 160 fFlags |= RTSTR_F_SPECIAL; … … 174 175 signed int cchPrecision, uint32_t fFlags) 175 176 { 177 NOREF(cchWidth); NOREF(cchPrecision); NOREF(fFlags); 176 178 char szTmp[160]; 177 179 -
trunk/src/VBox/Runtime/common/string/strformattype.cpp
r36555 r39083 425 425 char ch; 426 426 void *pvValue = va_arg(*pArgs, void *); 427 NOREF(chArgSize); 427 428 428 429 /* -
trunk/src/VBox/Runtime/common/vfs/vfsbase.cpp
r37596 r39083 1502 1502 RTDECL(int) RTVfsUtilDummyPollOne(uint32_t fEvents, RTMSINTERVAL cMillies, bool fIntr, uint32_t *pfRetEvents) 1503 1503 { 1504 NOREF(fEvents); 1504 1505 int rc; 1505 1506 if (fIntr) -
trunk/src/VBox/Runtime/common/vfs/vfsmemory.cpp
r39032 r39083 548 548 uint32_t *pfRetEvents) 549 549 { 550 NOREF(pvThis); 550 551 int rc; 551 552 if (fEvents != RTPOLL_EVT_ERROR) -
trunk/src/VBox/Runtime/common/vfs/vfsstdfile.cpp
r39032 r39083 253 253 uint32_t *pfRetEvents) 254 254 { 255 NOREF(pvThis); 255 256 int rc; 256 257 if (fEvents != RTPOLL_EVT_ERROR) … … 347 348 return RTFileSetOwner(pThis->hFile, uid, gid); 348 349 #else 350 NOREF(pvThis); NOREF(uid); NOREF(gid); 349 351 return VERR_NOT_IMPLEMENTED; 350 352 #endif -
trunk/src/VBox/Runtime/common/zip/gzipvfs.cpp
r39050 r39083 358 358 int rc; 359 359 360 AssertReturn(off == -1, VERR_INVALID_PARAMETER); 360 361 if (!pThis->fDecompress) 361 362 return VERR_ACCESS_DENIED; … … 398 399 //int rc; 399 400 401 AssertReturn(off == -1, VERR_INVALID_PARAMETER); 400 402 NOREF(fBlocking); 401 403 if (pThis->fDecompress) … … 403 405 404 406 /** @todo implement compression. */ 407 NOREF(pSgBuf); NOREF(pcbWritten); 405 408 return VERR_NOT_IMPLEMENTED; 406 409 } -
trunk/src/VBox/Runtime/common/zip/tar.cpp
r39070 r39083 995 995 break; 996 996 } 997 default: AssertFailedReturn(VERR_INVALID_PARAMETER); break; 998 } 997 default: AssertFailedReturn(VERR_INVALID_PARAMETER); 998 } 999 1000 if (poffActual) 1001 *poffActual = pFileInt->offCurrent; 999 1002 1000 1003 return VINF_SUCCESS; -
trunk/src/VBox/Runtime/common/zip/tarvfs.cpp
r34928 r39083 1059 1059 PRTZIPTARIOSTREAM pThis = (PRTZIPTARIOSTREAM)pvThis; 1060 1060 int rc; 1061 AssertReturn(off == -1, VERR_INVALID_PARAMETER); 1061 1062 1062 1063 if (pSgBuf->cSegs == 1) -
trunk/src/VBox/Runtime/common/zip/zip.cpp
r39050 r39083 316 316 static DECLCALLBACK(int) rtZipStoreCompDestroy(PRTZIPCOMP pZip) 317 317 { 318 NOREF(pZip); 318 319 return VINF_SUCCESS; 319 320 } … … 328 329 static DECLCALLBACK(int) rtZipStoreCompInit(PRTZIPCOMP pZip, RTZIPLEVEL enmLevel) 329 330 { 331 NOREF(enmLevel); 330 332 pZip->pfnCompress = rtZipStoreCompress; 331 333 pZip->pfnFinish = rtZipStoreCompFinish; … … 394 396 static DECLCALLBACK(int) rtZipStoreDecompDestroy(PRTZIPDECOMP pZip) 395 397 { 398 NOREF(pZip); 396 399 return VINF_SUCCESS; 397 400 } … … 1042 1045 static DECLCALLBACK(int) rtZipLZFCompDestroy(PRTZIPCOMP pZip) 1043 1046 { 1047 NOREF(pZip); 1044 1048 return VINF_SUCCESS; 1045 1049 } … … 1054 1058 static DECLCALLBACK(int) rtZipLZFCompInit(PRTZIPCOMP pZip, RTZIPLEVEL enmLevel) 1055 1059 { 1060 NOREF(enmLevel); 1056 1061 pZip->pfnCompress = rtZipLZFCompress; 1057 1062 pZip->pfnFinish = rtZipLZFCompFinish; … … 1304 1309 static DECLCALLBACK(int) rtZipLZFDecompDestroy(PRTZIPDECOMP pZip) 1305 1310 { 1311 NOREF(pZip); 1306 1312 return VINF_SUCCESS; 1307 1313 } … … 1493 1499 static DECLCALLBACK(int) rtZipStubDecompress(PRTZIPDECOMP pZip, void *pvBuf, size_t cbBuf, size_t *pcbWritten) 1494 1500 { 1501 NOREF(pZip); NOREF(pvBuf); NOREF(cbBuf); NOREF(pcbWritten); 1495 1502 return VERR_NOT_SUPPORTED; 1496 1503 } … … 1502 1509 static DECLCALLBACK(int) rtZipStubDecompDestroy(PRTZIPDECOMP pZip) 1503 1510 { 1511 NOREF(pZip); 1504 1512 return VINF_SUCCESS; 1505 1513 } -
trunk/src/VBox/Runtime/generic/RTProcIsRunningByName-generic.cpp
r28800 r39083 38 38 * No other info here, so return false; 39 39 */ 40 NOREF(pszName); 40 41 return false; 41 42 } -
trunk/src/VBox/Runtime/generic/semrw-generic.cpp
r36190 r39083 903 903 * Ask the lock validator. 904 904 */ 905 NOREF(fWannaHear); 905 906 return RTLockValidatorRecSharedIsOwner(&pThis->ValidatorRead, NIL_RTTHREAD); 906 907 #else -
trunk/src/VBox/Runtime/generic/timer-generic.cpp
r33540 r39083 231 231 if (!rtTimerIsValid(pTimer)) 232 232 return VERR_INVALID_HANDLE; 233 NOREF(u64NanoInterval); 233 234 return VERR_NOT_SUPPORTED; 234 235 } … … 236 237 237 238 238 static DECLCALLBACK(int) rtTimerThread(RTTHREAD Thread, void *pvUser)239 static DECLCALLBACK(int) rtTimerThread(RTTHREAD hThreadSelf, void *pvUser) 239 240 { 240 241 PRTTIMER pTimer = (PRTTIMER)pvUser; 242 NOREF(hThreadSelf); 241 243 242 244 /* … … 323 325 RTDECL(int) RTTimerRequestSystemGranularity(uint32_t u32Request, uint32_t *pu32Granted) 324 326 { 327 NOREF(u32Request); NOREF(pu32Granted); 325 328 return VERR_NOT_SUPPORTED; 326 329 } … … 330 333 RTDECL(int) RTTimerReleaseSystemGranularity(uint32_t u32Granted) 331 334 { 335 NOREF(u32Granted); 332 336 return VERR_NOT_SUPPORTED; 333 337 } -
trunk/src/VBox/Runtime/generic/timerlr-generic.cpp
r34507 r39083 237 237 238 238 239 static DECLCALLBACK(int) rtTimerLRThread(RTTHREAD hThread , void *pvUser)239 static DECLCALLBACK(int) rtTimerLRThread(RTTHREAD hThreadSelf, void *pvUser) 240 240 { 241 241 PRTTIMERLRINT pThis = (PRTTIMERLRINT)pvUser; 242 NOREF(hThreadSelf); 242 243 243 244 /* -
trunk/src/VBox/Runtime/r3/alloc-ef.cpp
r33540 r39083 96 96 vfprintf(stderr, pszFormat, args); 97 97 va_end(args); 98 #else 99 NOREF(pszOp); NOREF(pszFormat); 98 100 #endif 99 101 } … … 200 202 (unsigned long)(pBlock->cbAligned - pBlock->cbUnaligned), 201 203 pBlock->pvCaller); 204 NOREF(pvUser); 202 205 return 0; 203 206 } … … 377 380 RTDECL(void) rtR3MemFree(const char *pszOp, RTMEMTYPE enmType, void *pv, void *pvCaller, RT_SRC_POS_DECL) 378 381 { 382 NOREF(enmType); RT_SRC_POS_NOREF(); 383 379 384 /* 380 385 * Simple case. -
trunk/src/VBox/Runtime/r3/alloc.cpp
r36597 r39083 111 111 void *pv = RTMemTrackerHdrAlloc(malloc(cb + sizeof(RTMEMTRACKERHDR)), cb, pszTag, RTMEMTRACKERMETHOD_ALLOC); 112 112 # else 113 void *pv = malloc(cb); 113 void *pv = malloc(cb); NOREF(pszTag); 114 114 # endif 115 115 AssertMsg(pv, ("malloc(%#zx) failed!!!\n", cb)); … … 135 135 void *pv = RTMemTrackerHdrAlloc(calloc(1, cb + sizeof(RTMEMTRACKERHDR)), cb, pszTag, RTMEMTRACKERMETHOD_ALLOCZ); 136 136 #else 137 void *pv = calloc(1, cb); 137 void *pv = calloc(1, cb); NOREF(pszTag); 138 138 #endif 139 139 AssertMsg(pv, ("calloc(1,%#zx) failed!!!\n", cb)); … … 192 192 void *pv = RTMemTrackerHdrReallocDone(pvNew, cbNew, pvOld, pszTag); 193 193 # else 194 void *pv = realloc(pvOld, cbNew); 194 void *pv = realloc(pvOld, cbNew); NOREF(pszTag); 195 195 # endif 196 196 AssertMsg(pv || !cbNew, ("realloc(%p, %#zx) failed!!!\n", pvOld, cbNew)); -
trunk/src/VBox/Runtime/r3/darwin/mp-darwin.cpp
r36232 r39083 161 161 { 162 162 /** @todo figure out how to get the current cpu speed on darwin. Have to check what powermanagement does. */ 163 NOREF(idCpu); 163 164 return 0; 164 165 } -
trunk/src/VBox/Runtime/r3/darwin/sched-darwin.cpp
r36555 r39083 237 237 if (offBest) 238 238 { 239 const PROCPRIORITY *pProcessPriority = &g_aDefaultPriority;240 239 for (unsigned i = 0; i < RT_ELEMENTS(g_aPriorities); i++) 241 240 { -
trunk/src/VBox/Runtime/r3/fs.cpp
r34015 r39083 103 103 RTFMODE rtFsModeFromUnix(RTFMODE fMode, const char *pszName, size_t cbName) 104 104 { 105 NOREF(cbName); 106 105 107 fMode &= RTFS_UNIX_MASK; 106 108 -
trunk/src/VBox/Runtime/r3/posix/dir-posix.cpp
r36167 r39083 196 196 int rtDirNativeOpen(PRTDIR pDir, char *pszPathBuf) 197 197 { 198 NOREF(pszPathBuf); /* only used on windows */ 199 198 200 /* 199 201 * Convert to a native path and try opendir. -
trunk/src/VBox/Runtime/r3/posix/fileaio-posix.cpp
r37596 r39083 579 579 if (hAioCtx == NIL_RTFILEAIOCTX) 580 580 return RTFILEAIO_UNLIMITED_REQS; 581 else 582 return pCtxInt->cMaxRequests; 581 return pCtxInt->cMaxRequests; 583 582 } 584 583 585 584 RTDECL(int) RTFileAioCtxAssociateWithFile(RTFILEAIOCTX hAioCtx, RTFILE hFile) 586 585 { 586 NOREF(hAioCtx); NOREF(hFile); 587 587 return VINF_SUCCESS; 588 588 } -
trunk/src/VBox/Runtime/r3/posix/fileio-posix.cpp
r39030 r39083 686 686 RTR3DECL(int) RTFileIoCtl(RTFILE hFile, unsigned long ulRequest, void *pvData, unsigned cbData, int *piRet) 687 687 { 688 NOREF(cbData); 688 689 int rc = ioctl(RTFileToNative(hFile), ulRequest, pvData); 689 690 if (piRet) -
trunk/src/VBox/Runtime/r3/posix/fileio2-posix.cpp
r37596 r39083 135 135 PCRTTIMESPEC pChangeTime, PCRTTIMESPEC pBirthTime) 136 136 { 137 NOREF(pChangeTime); NOREF(pBirthTime); 138 137 139 /* 138 140 * We can only set AccessTime and ModificationTime, so if neither -
trunk/src/VBox/Runtime/r3/posix/process-creation-posix.cpp
r39032 r39083 85 85 * @returns IPRT status code 86 86 */ 87 static int rtCheckCredentials(const char *pszUser, const char *pszPasswd, gid_t * gid, uid_t *uid)87 static int rtCheckCredentials(const char *pszUser, const char *pszPasswd, gid_t *pGid, uid_t *pUid) 88 88 { 89 89 #if defined(RT_OS_LINUX) … … 111 111 return VERR_PERMISSION_DENIED; 112 112 113 * gid = pw->pw_gid;114 * uid = pw->pw_uid;113 *pGid = pw->pw_gid; 114 *pUid = pw->pw_uid; 115 115 return VINF_SUCCESS; 116 116 … … 135 135 return VERR_PERMISSION_DENIED; 136 136 137 * gid = ppw->pw_gid;138 * uid = ppw->pw_uid;137 *pGid = ppw->pw_gid; 138 *pUid = ppw->pw_uid; 139 139 return VINF_SUCCESS; 140 140 141 141 #else 142 NOREF(pszUser); NOREF(pszPasswd); NOREF(pGid); NOREF(pUid); 142 143 return VERR_PERMISSION_DENIED; 143 144 #endif -
trunk/src/VBox/Runtime/r3/posix/rtmempage-exec-mmap-heap-posix.cpp
r33279 r39083 175 175 176 176 /** 177 * Deletes the heap an all the memory it tracks.177 * Deletes the heap and all the memory it tracks. 178 178 * 179 179 * @returns IPRT status code. … … 182 182 int RTHeapPageDelete(PRTHEAPPAGE pHeap) 183 183 { 184 NOREF(pHeap); 184 185 return VERR_NOT_IMPLEMENTED; 185 186 } … … 312 313 { 313 314 int rc; 315 NOREF(pszTag); 314 316 315 317 /* … … 564 566 static DECLCALLBACK(int) rtMemPagePosixInitOnce(void *pvUser1, void *pvUser2) 565 567 { 568 NOREF(pvUser1); NOREF(pvUser2); 566 569 int rc = RTHeapPageInit(&g_MemPagePosixHeap, false /*fExec*/); 567 570 if (RT_SUCCESS(rc)) -
trunk/src/VBox/Runtime/r3/posix/semeventmulti-posix.cpp
r33540 r39083 429 429 #endif 430 430 RTThreadBlocking(hThreadSelf, RTTHREADSTATE_EVENT_MULTI, true); 431 /** @todo interruptible wait is not implementable... */ NOREF(fFlags); 431 432 rc = pthread_cond_wait(&pThis->Cond, &pThis->Mutex); 432 433 RTThreadUnblocked(hThreadSelf, RTTHREADSTATE_EVENT_MULTI); -
trunk/src/VBox/Runtime/r3/tcp.cpp
r39070 r39083 963 963 static int rtTcpClose(RTSOCKET Sock, const char *pszMsg, bool fTryGracefulShutdown) 964 964 { 965 int rc;965 NOREF(pszMsg); /** @todo drop this parameter? */ 966 966 967 967 /* ignore nil handles. */ … … 972 972 * Try to gracefully shut it down. 973 973 */ 974 int rc; 974 975 if (fTryGracefulShutdown) 975 976 { -
trunk/src/VBox/Runtime/r3/udp.cpp
r37197 r39083 670 670 static int rtUdpClose(RTSOCKET Sock, const char *pszMsg) 671 671 { 672 NOREF(pszMsg); /** @todo drop this parameter? */ 673 672 674 /* ignore nil handles. */ 673 675 if (Sock == NIL_RTSOCKET) -
trunk/src/VBox/Runtime/r3/xml.cpp
r37493 r39083 1660 1660 { 1661 1661 /// @todo to be written 1662 NOREF(aCtxt); 1662 1663 1663 1664 return -1; … … 1785 1786 { 1786 1787 /// @todo to be written 1788 NOREF(aCtxt); 1787 1789 1788 1790 return -1; -
trunk/src/VBox/Runtime/testcase/tstLdrDisasmTest.cpp
r28800 r39083 82 82 DECLCALLBACK(int) DisasmTest1ReadCode(RTUINTPTR SrcAddr, uint8_t *pbDst, uint32_t cb, void *pvUser) 83 83 { 84 NOREF(pvUser); 84 85 while (cb > 0) 85 86 { -
trunk/src/VBox/Runtime/testcase/tstLdrObj.cpp
r38325 r39083 82 82 extern "C" DECLEXPORT(char *) SomeExportFunction2(void *pvBuf) 83 83 { 84 NOREF(pvBuf); 84 85 return (char *)memcpy(achBss, szStr1, sizeof(szStr1)); 85 86 } … … 88 89 extern "C" DECLEXPORT(char *) SomeExportFunction3(void *pvBuf) 89 90 { 91 NOREF(pvBuf); 90 92 return (char *)memcpy(achBss, szStr2, strlen(szStr2)); 91 93 } -
trunk/src/VBox/Runtime/testcase/tstLdrObjR0.cpp
r28800 r39083 71 71 extern "C" DECLEXPORT(uint32_t) SomeExportFunction1(void *pvBuf) 72 72 { 73 NOREF(pvBuf); 73 74 return achBss[0] + achBss[16384]; 74 75 } … … 77 78 extern "C" DECLEXPORT(char *) SomeExportFunction2(void *pvBuf) 78 79 { 80 NOREF(pvBuf); 79 81 return (char *)memcpy(achBss, szStr1, sizeof(szStr1)); 80 82 } … … 83 85 extern "C" DECLEXPORT(char *) SomeExportFunction3(void *pvBuf) 84 86 { 87 NOREF(pvBuf); 85 88 return (char *)memcpy(achBss, szStr2, strlen(szStr2)); 86 89 } -
trunk/src/VBox/Runtime/testcase/tstR0ThreadPreemption.cpp
r29250 r39083 50 50 uint64_t u64Arg, PSUPR0SERVICEREQHDR pReqHdr) 51 51 { 52 NOREF(pSession); 52 53 if (u64Arg) 53 54 return VERR_INVALID_PARAMETER; -
trunk/src/VBox/Runtime/testcase/tstRTAssertCompile.cpp
r37809 r39083 35 35 { 36 36 /* Only positive tests here. */ 37 NOREF(argc); NOREF(argv); 37 38 38 39 AssertCompile(true); -
trunk/src/VBox/Runtime/testcase/tstRTBitOperations.cpp
r28800 r39083 131 131 RTTestBanner(hTest); 132 132 133 int rcRet = 0;134 133 int i; 135 134 int j; -
trunk/src/VBox/Runtime/testcase/tstRTR0MemUserKernel.cpp
r28800 r39083 50 50 uint64_t u64Arg, PSUPR0SERVICEREQHDR pReqHdr) 51 51 { 52 NOREF(pSession); 52 53 if (!VALID_PTR(pReqHdr)) 53 54 return VERR_INVALID_PARAMETER; -
trunk/src/VBox/Runtime/testcase/tstRTR0SemMutex.cpp
r28800 r39083 57 57 uint64_t u64Arg, PSUPR0SERVICEREQHDR pReqHdr) 58 58 { 59 NOREF(pSession); 59 60 if (!VALID_PTR(pReqHdr)) 60 61 return VERR_INVALID_PARAMETER; -
trunk/src/VBox/Runtime/testcase/tstRTR0Timer.cpp
r33540 r39083 120 120 RTCPUID idCpu = RTMpCpuId(); 121 121 uint32_t iCpu = RTMpCpuIdToSetIndex(idCpu); 122 NOREF(pTimer); 122 123 123 124 RTR0TESTR0_CHECK_MSG(iCpu < RTCPUSET_MAX_CPUS, ("iCpu=%d idCpu=%u\n", iCpu, idCpu)); … … 148 149 PTSTRTR0TIMERS1 pState = (PTSTRTR0TIMERS1)pvUser; 149 150 uint32_t iShot = ASMAtomicIncU32(&pState->cShots); 151 NOREF(pTimer); 150 152 151 153 if (iShot <= RT_ELEMENTS(pState->aShotNsTSes)) … … 278 280 PTSTRTR0TIMERS1 pState = (PTSTRTR0TIMERS1)pvUser; 279 281 uint32_t iShot = ASMAtomicIncU32(&pState->cShots); 282 NOREF(pTimer); 280 283 281 284 if (iShot <= RT_ELEMENTS(pState->aShotNsTSes)) … … 288 291 289 292 293 #ifdef SOME_UNUSED_FUNCTION 290 294 /** 291 295 * Checks that the interval between two timer shots are within the specified … … 306 310 return 0; 307 311 } 312 #endif 308 313 309 314 … … 357 362 { 358 363 RTR0TESTR0_SRV_REQ_PROLOG_RET(pReqHdr); 364 NOREF(pSession); 359 365 360 366 /*
Note:
See TracChangeset
for help on using the changeset viewer.