VirtualBox

Changeset 63063 in vbox


Ignore:
Timestamp:
Aug 5, 2016 9:14:33 PM (8 years ago)
Author:
vboxsync
Message:

IPRT: warnings

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

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/r0drv/nt/memobj-r0drv-nt.cpp

    r62663 r63063  
    523523    return VERR_NO_MEMORY;
    524524#else   /* IPRT_TARGET_NT4 */
     525    RT_NOREF(ppMem, cb, PhysHighest);
    525526    return VERR_NOT_SUPPORTED;
    526527#endif  /* IPRT_TARGET_NT4 */
  • trunk/src/VBox/Runtime/r0drv/nt/mp-r0drv-nt.cpp

    r62663 r63063  
    374374                             RT_NT_CPUID enmCpuid, RTCPUID idCpu, RTCPUID idCpu2, uint32_t *pcHits)
    375375{
     376#ifdef IPRT_TARGET_NT4
     377    RT_NOREF(pfnWorker, pvUser1, pvUser2, enmCpuid, idCpu, idCpu2, pcHits);
     378    /* g_pfnrtNt* are not present on NT anyway. */
     379    return VERR_NOT_SUPPORTED;
     380
     381#else  /* !IPRT_TARGET_NT4 */
    376382    PRTMPARGS pArgs;
    377383    KDPC     *paExecCpuDpcs;
    378384
    379 #if 0
     385# if 0
    380386    /* KeFlushQueuedDpcs must be run at IRQL PASSIVE_LEVEL according to MSDN, but the
    381387     * driver verifier doesn't complain...
    382388     */
    383389    AssertMsg(KeGetCurrentIrql() == PASSIVE_LEVEL, ("%d != %d (PASSIVE_LEVEL)\n", KeGetCurrentIrql(), PASSIVE_LEVEL));
    384 #endif
    385 
    386 #ifdef IPRT_TARGET_NT4
    387     KAFFINITY Mask;
    388     /* g_pfnrtNt* are not present on NT anyway. */
    389     return VERR_NOT_SUPPORTED;
    390 #else
     390# endif
     391
    391392    KAFFINITY Mask = KeQueryActiveProcessors();
    392 #endif
    393393
    394394    /* KeFlushQueuedDpcs is not present in Windows 2000; import it dynamically so we can just fail this call. */
     
    505505
    506506    return VINF_SUCCESS;
     507#endif /* */
    507508}
    508509
  • trunk/src/VBox/Runtime/r0drv/nt/timer-r0drv-nt.cpp

    r62663 r63063  
    130130        InterruptTime.HighPart = ((KUSER_SHARED_DATA volatile *)SharedUserData)->InterruptTime.High1Time;
    131131        InterruptTime.LowPart  = ((KUSER_SHARED_DATA volatile *)SharedUserData)->InterruptTime.LowPart;
    132     } while (((KUSER_SHARED_DATA volatile *)SharedUserData)->InterruptTime.High2Time != InterruptTime.HighPart);
     132    } while (((KUSER_SHARED_DATA volatile *)SharedUserData)->InterruptTime.High2Time != (LONG)InterruptTime.HighPart);
    133133    return InterruptTime.QuadPart;
    134134# endif
  • trunk/src/VBox/Runtime/testcase/tstLdr-3.cpp

    r62724 r63063  
    263263        MyDisBlock(enmDisCpuMode, (uintptr_t)pbCode,
    264264                   RT_MAX(NearSym.aSyms[1].Value - NearSym.aSyms[0].Value, 0x20000),
    265                    NearSym.aSyms[0].Value - (RTUINTPTR)pbCode,
     265                   NearSym.aSyms[0].Value - (uintptr_t)pbCode,
    266266                   NearSym.aSyms[0].Value,
    267267                   NearSym.Addr);
  • trunk/src/VBox/Runtime/testcase/tstRTStrFormat.cpp

    r62477 r63063  
    473473    }
    474474
    475     if (sizeof(RTCCUINTREG) == 8)
    476     {
    477         CHECK42("%RTreg", (RTCCUINTREG)0, "0000000000000000");
    478         CHECK42("%RTreg", ~(RTCCUINTREG)0, "ffffffffffffffff");
    479         CHECK42("%RTreg", (RTCCUINTREG)0x84342134, "0000000084342134");
    480         CHECK42("%RTreg", (RTCCUINTREG)0x23484342134ULL, "0000023484342134");
    481     }
    482     else
    483     {
    484         CHECK42("%RTreg", (RTCCUINTREG)0, "00000000");
    485         CHECK42("%RTreg", ~(RTCCUINTREG)0, "ffffffff");
    486         CHECK42("%RTreg", (RTCCUINTREG)0x84342134, "84342134");
    487     }
     475#if ARCH_BITS == 64
     476    AssertCompileSize(RTCCUINTREG, 8);
     477    CHECK42("%RTreg", (RTCCUINTREG)0, "0000000000000000");
     478    CHECK42("%RTreg", ~(RTCCUINTREG)0, "ffffffffffffffff");
     479    CHECK42("%RTreg", (RTCCUINTREG)0x84342134, "0000000084342134");
     480    CHECK42("%RTreg", (RTCCUINTREG)0x23484342134ULL, "0000023484342134");
     481#elif ARCH_BITS == 32
     482    AssertCompileSize(RTCCUINTREG, 4);
     483    CHECK42("%RTreg", (RTCCUINTREG)0, "00000000");
     484    CHECK42("%RTreg", ~(RTCCUINTREG)0, "ffffffff");
     485    CHECK42("%RTreg", (RTCCUINTREG)0x84342134, "84342134");
     486#else
     487# error ARCH_BITS
     488#endif
    488489
    489490    CHECK42("%RTsel", (RTSEL)0x543, "0543");
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