- Timestamp:
- Jul 28, 2016 11:01:05 PM (8 years ago)
- Location:
- trunk/src/VBox/Runtime
- Files:
-
- 13 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/generic/memsafer-generic.cpp
r62477 r62663 108 108 *ppvNew = NULL; 109 109 AssertReturn(cb, VERR_INVALID_PARAMETER); 110 RT_NOREF_PV(pszTag); 110 111 111 112 /* -
trunk/src/VBox/Runtime/r0drv/alloc-ef-r0drv.cpp
r62592 r62663 206 206 static DECLCALLBACK(size_t) rtR0MemEfWrite(void *pvArg, const char *pachChars, size_t cbChars) 207 207 { 208 RT_NOREF1(pvArg); 208 209 if (cbChars) 209 210 { -
trunk/src/VBox/Runtime/r0drv/generic/threadctxhooks-r0drv-generic.cpp
r62477 r62663 36 36 RTDECL(int) RTThreadCtxHookCreate(PRTTHREADCTXHOOK phCtxHook, uint32_t fFlags, PFNRTTHREADCTXHOOK pfnCallback, void *pvUser) 37 37 { 38 NOREF(phCtxHook); 39 NOREF(pfnCallback); 40 NOREF(pvUser); 38 RT_NOREF4(phCtxHook, fFlags, pfnCallback, pvUser); 41 39 return VERR_NOT_SUPPORTED; 42 40 } -
trunk/src/VBox/Runtime/r0drv/nt/memobj-r0drv-nt.cpp
r62477 r62663 248 248 { 249 249 AssertMsgReturn(cb <= _1G, ("%#x\n", cb), VERR_OUT_OF_RANGE); /* for safe size_t -> ULONG */ 250 RT_NOREF1(fExecutable); 250 251 251 252 /* … … 346 347 __except(EXCEPTION_EXECUTE_HANDLER) 347 348 { 349 # ifdef LOG_ENABLED 348 350 NTSTATUS rcNt = GetExceptionCode(); 349 351 Log(("rtR0MemObjNativeAllocLow: Exception Code %#x\n", rcNt)); 352 # endif 350 353 /* nothing */ 351 354 } … … 380 383 { 381 384 AssertMsgReturn(cb <= _1G, ("%#x\n", cb), VERR_OUT_OF_RANGE); /* for safe size_t -> ULONG */ 385 RT_NOREF1(fExecutable); 382 386 #ifdef IPRT_TARGET_NT4 383 387 if (uAlignment != PAGE_SIZE) … … 690 694 * MmCreateSection(SEC_RESERVE) + MmMapViewInSystemSpace perhaps? 691 695 */ 696 RT_NOREF4(ppMem, pvFixed, cb, uAlignment); 692 697 return VERR_NOT_SUPPORTED; 693 698 } … … 700 705 * ZeCreateSection(SEC_RESERVE) + ZwMapViewOfSection perhaps? 701 706 */ 707 RT_NOREF5(ppMem, R3PtrFixed, cb, uAlignment, R0Process); 702 708 return VERR_NOT_SUPPORTED; 703 709 } … … 788 794 __except(EXCEPTION_EXECUTE_HANDLER) 789 795 { 796 #ifdef LOG_ENABLED 790 797 NTSTATUS rcNt = GetExceptionCode(); 791 798 Log(("rtR0MemObjNtMap: Exception Code %#x\n", rcNt)); 799 #endif 792 800 793 801 /* nothing */ … … 849 857 DECLHIDDEN(int) rtR0MemObjNativeProtect(PRTR0MEMOBJINTERNAL pMem, size_t offSub, size_t cbSub, uint32_t fProt) 850 858 { 859 #if 0 851 860 PRTR0MEMOBJNT pMemNt = (PRTR0MEMOBJNT)pMem; 861 #endif 852 862 if (!g_fResolvedDynamicApis) 853 863 rtR0MemObjNtResolveDynamicApis(); … … 967 977 return RTErrConvertFromNtStatus(rcNt); 968 978 } 979 #else 980 RT_NOREF4(pMem, offSub, cbSub, fProt); 969 981 #endif 970 982 -
trunk/src/VBox/Runtime/r0drv/nt/mp-r0drv-nt.cpp
r62477 r62663 345 345 { 346 346 PRTMPARGS pArgs = (PRTMPARGS)DeferredContext; 347 RT_NOREF3(Dpc, SystemArgument1, SystemArgument2); 347 348 348 349 ASMAtomicIncU32(&pArgs->cHits); … … 453 454 { 454 455 ASMAtomicIncS32(&pArgs->cRefs); 455 BOOLEAN ret= KeInsertQueueDpc(&paExecCpuDpcs[0], 0, 0);456 Assert( ret);456 BOOLEAN fRc = KeInsertQueueDpc(&paExecCpuDpcs[0], 0, 0); 457 Assert(fRc); NOREF(fRc); 457 458 } 458 459 else if (enmCpuid == RT_NT_CPUID_PAIR) 459 460 { 460 461 ASMAtomicIncS32(&pArgs->cRefs); 461 BOOLEAN ret= KeInsertQueueDpc(&paExecCpuDpcs[0], 0, 0);462 Assert( ret);462 BOOLEAN fRc = KeInsertQueueDpc(&paExecCpuDpcs[0], 0, 0); 463 Assert(fRc); NOREF(fRc); 463 464 464 465 ASMAtomicIncS32(&pArgs->cRefs); 465 ret= KeInsertQueueDpc(&paExecCpuDpcs[1], 0, 0);466 Assert( ret);466 fRc = KeInsertQueueDpc(&paExecCpuDpcs[1], 0, 0); 467 Assert(fRc); NOREF(fRc); 467 468 } 468 469 else … … 476 477 { 477 478 ASMAtomicIncS32(&pArgs->cRefs); 478 BOOLEAN ret= KeInsertQueueDpc(&paExecCpuDpcs[i], 0, 0);479 Assert( ret);479 BOOLEAN fRc = KeInsertQueueDpc(&paExecCpuDpcs[i], 0, 0); 480 Assert(fRc); NOREF(fRc); 480 481 } 481 482 } … … 605 606 { 606 607 PRTMPNTONSPECIFICARGS pArgs = (PRTMPNTONSPECIFICARGS)DeferredContext; 608 RT_NOREF3(Dpc, SystemArgument1, SystemArgument2); 609 607 610 ASMAtomicWriteBool(&pArgs->fExecuting, true); 608 611 … … 702 705 { 703 706 BOOLEAN fRc = KeInsertQueueDpc(&pArgs->Dpc, 0, 0); 704 Assert(fRc); 707 Assert(fRc); NOREF(fRc); 705 708 KeLowerIrql(bOldIrql); 706 709 … … 813 816 int rtMpPokeCpuUsingBroadcastIpi(RTCPUID idCpu) 814 817 { 818 NOREF(idCpu); 815 819 g_pfnrtKeIpiGenericCall(rtMpIpiGenericCall, 0); 816 820 return VINF_SUCCESS; -
trunk/src/VBox/Runtime/r0drv/nt/process-r0drv-nt.cpp
r62477 r62663 35 35 RTDECL(RTPROCESS) RTProcSelf(void) 36 36 { 37 return (RTPROCESS) PsGetCurrentProcessId();37 return (RTPROCESS)(uintptr_t)PsGetCurrentProcessId(); 38 38 } 39 39 -
trunk/src/VBox/Runtime/r0drv/nt/semevent-r0drv-nt.cpp
r62477 r62663 72 72 Assert(!(fFlags & RTSEMEVENT_FLAGS_BOOTSTRAP_HACK) || (fFlags & RTSEMEVENT_FLAGS_NO_LOCK_VAL)); 73 73 AssertCompile(sizeof(RTSEMEVENTINTERNAL) > sizeof(void *)); 74 RT_NOREF2(hClass, pszNameFmt); 74 75 75 76 PRTSEMEVENTINTERNAL pThis = (PRTSEMEVENTINTERNAL)RTMemAlloc(sizeof(*pThis)); … … 173 174 AssertMsgReturn(pThis->u32Magic == RTSEMEVENT_MAGIC, ("%p u32Magic=%RX32\n", pThis, pThis->u32Magic), VERR_INVALID_PARAMETER); 174 175 AssertReturn(RTSEMWAIT_FLAGS_ARE_VALID(fFlags), VERR_INVALID_PARAMETER); 176 NOREF(pSrcPos); 175 177 176 178 rtR0SemEventNtRetain(pThis); -
trunk/src/VBox/Runtime/r0drv/nt/semeventmulti-r0drv-nt.cpp
r62477 r62663 71 71 { 72 72 AssertReturn(!(fFlags & ~RTSEMEVENTMULTI_FLAGS_NO_LOCK_VAL), VERR_INVALID_PARAMETER); 73 RT_NOREF2(hClass, pszNameFmt); 73 74 74 75 AssertCompile(sizeof(RTSEMEVENTMULTIINTERNAL) > sizeof(void *)); … … 196 197 AssertMsgReturn(pThis->u32Magic == RTSEMEVENTMULTI_MAGIC, ("%p u32Magic=%RX32\n", pThis, pThis->u32Magic), VERR_INVALID_PARAMETER); 197 198 AssertReturn(RTSEMWAIT_FLAGS_ARE_VALID(fFlags), VERR_INVALID_PARAMETER); 199 RT_NOREF1(pSrcPos); 198 200 199 201 rtR0SemEventMultiNtRetain(pThis); -
trunk/src/VBox/Runtime/r0drv/nt/semmutex-r0drv-nt.cpp
r62477 r62663 72 72 { 73 73 AssertReturn(!(fFlags & ~RTSEMMUTEX_FLAGS_NO_LOCK_VAL), VERR_INVALID_PARAMETER); 74 RT_NOREF3(hClass, uSubClass, pszNameFmt); 74 75 75 76 AssertCompile(sizeof(RTSEMMUTEXINTERNAL) > sizeof(void *)); … … 135 136 AssertMsg(cMillies == RT_INDEFINITE_WAIT, ("timeouts are not supported when using fast mutexes!\n")); 136 137 ExAcquireFastMutex(&pThis->Mutex); 138 return VINF_SUCCESS; 139 137 140 #else /* !RT_USE_FAST_MUTEX */ 138 141 NTSTATUS rcNt; … … 166 169 } 167 170 #endif /* !RT_USE_FAST_MUTEX */ 168 return VINF_SUCCESS;169 171 } 170 172 … … 178 180 RTDECL(int) RTSemMutexRequestDebug(RTSEMMUTEX hMutexSem, RTMSINTERVAL cMillies, RTHCUINTPTR uId, RT_SRC_POS_DECL) 179 181 { 182 RT_NOREF1(uId); RT_SRC_POS_NOREF(); 180 183 return RTSemMutexRequest(hMutexSem, cMillies); 181 184 } … … 190 193 RTDECL(int) RTSemMutexRequestNoResumeDebug(RTSEMMUTEX hMutexSem, RTMSINTERVAL cMillies, RTHCUINTPTR uId, RT_SRC_POS_DECL) 191 194 { 195 RT_NOREF1(uId); RT_SRC_POS_NOREF(); 192 196 return RTSemMutexRequestNoResume(hMutexSem, cMillies); 193 197 } -
trunk/src/VBox/Runtime/r0drv/nt/spinlock-r0drv-nt.cpp
r62477 r62663 86 86 { 87 87 AssertReturn(fFlags == RTSPINLOCK_FLAGS_INTERRUPT_SAFE || fFlags == RTSPINLOCK_FLAGS_INTERRUPT_UNSAFE, VERR_INVALID_PARAMETER); 88 RT_NOREF1(pszName); 88 89 89 90 /* -
trunk/src/VBox/Runtime/r0drv/nt/thread-r0drv-nt.cpp
r62477 r62663 85 85 RTDECL(bool) RTThreadPreemptIsEnabled(RTTHREAD hThread) 86 86 { 87 Assert(hThread == NIL_RTTHREAD); 87 Assert(hThread == NIL_RTTHREAD); RT_NOREF1(hThread); 88 88 KIRQL Irql = KeGetCurrentIrql(); 89 89 if (Irql > APC_LEVEL) … … 97 97 RTDECL(bool) RTThreadPreemptIsPending(RTTHREAD hThread) 98 98 { 99 Assert(hThread == NIL_RTTHREAD); 99 Assert(hThread == NIL_RTTHREAD); RT_NOREF1(hThread); 100 100 101 101 /* … … 140 140 fPending = *pu32QuantumEnd != 0; 141 141 } 142 else 143 fPending = false; 142 144 143 145 /* Check DpcQueueDepth. */ -
trunk/src/VBox/Runtime/r0drv/nt/thread2-r0drv-nt.cpp
r62477 r62663 85 85 DECLHIDDEN(int) rtThreadNativeAdopt(PRTTHREADINT pThread) 86 86 { 87 RT_NOREF1(pThread); 87 88 return VERR_NOT_IMPLEMENTED; 88 89 } … … 93 94 PVOID pvThreadObj = pThread->Core.Key; 94 95 NTSTATUS rcNt = KeWaitForSingleObject(pvThreadObj, Executive, KernelMode, FALSE, NULL); 95 AssertMsg(rcNt == STATUS_SUCCESS, ("rcNt=%#x\n", rcNt)); 96 AssertMsg(rcNt == STATUS_SUCCESS, ("rcNt=%#x\n", rcNt)); RT_NOREF1(rcNt); 96 97 } 97 98 -
trunk/src/VBox/Runtime/r0drv/nt/timer-r0drv-nt.cpp
r62477 r62663 151 151 #ifdef RTR0TIMER_NT_MANUAL_RE_ARM 152 152 Assert(pTimer->u64NanoInterval); 153 RT_NOREF1(pMasterDpc); 153 154 154 155 uint64_t uNtNext = (iTick * pTimer->u64NanoInterval) / 100 - 10; /* 1us fudge */ … … 163 164 164 165 KeSetTimerEx(&pTimer->NtTimer, DueTime, 0, &pTimer->aSubTimers[0].NtDpc); 166 #else 167 RT_NOREF3(pTimer, iTick, pMasterDpc); 165 168 #endif 166 169 } … … 426 429 AssertPtrReturn(pTimer, VERR_INVALID_HANDLE); 427 430 AssertReturn(pTimer->u32Magic == RTTIMER_MAGIC, VERR_INVALID_HANDLE); 431 RT_NOREF1(u64NanoInterval); 428 432 429 433 return VERR_NOT_SUPPORTED;
Note:
See TracChangeset
for help on using the changeset viewer.