VirtualBox

Changeset 62725 in vbox for trunk/src/VBox/Runtime/testcase


Ignore:
Timestamp:
Jul 30, 2016 12:13:16 AM (9 years ago)
Author:
vboxsync
Message:

IPRT/testcases: warnings

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

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/testcase/ntGetTimerResolution.cpp

    r62592 r62725  
    3131#define _WIN32_WINNT 0x0500
    3232#include <iprt/win/windows.h>
     33#include <iprt/types.h>
    3334#include <stdio.h>
    3435
     
    4142int main()
    4243{
    43     ULONG Min = ~0;
    44     ULONG Max = ~0;
    45     ULONG Cur = ~0;
     44    ULONG Min = UINT32_MAX;
     45    ULONG Max = UINT32_MAX;
     46    ULONG Cur = UINT32_MAX;
    4647    NtQueryTimerResolution(&Max, &Min, &Cur);
    4748    printf("NtQueryTimerResolution -> Max=%08luns Min=%08luns Cur=%08luns\n", Min * 100, Max * 100, Cur * 100);
  • trunk/src/VBox/Runtime/testcase/tstRTProcWait.cpp

    r62477 r62725  
    5050DECLCALLBACK(int) SpawnerThread(RTTHREAD Thread, void *pvUser)
    5151{
     52    RT_NOREF1(Thread);
    5253    PSPAWNERARGS pArgs = (PSPAWNERARGS)pvUser;
    5354    pArgs->Process = NIL_RTPROCESS;
  • trunk/src/VBox/Runtime/testcase/tstRTR0SemMutexDriver.cpp

    r62721 r62725  
    7070static DECLCALLBACK(int) tstThreadFn(RTTHREAD hThreadSelf, void *pvUser)
    7171{
     72    RT_NOREF1(hThreadSelf)
    7273    uint32_t            u32   = (uint32_t)(uintptr_t)pvUser;
    7374    TSTRTR0SEMMUTEX     enmDo = (TSTRTR0SEMMUTEX)RT_LOWORD(u32);
  • trunk/src/VBox/Runtime/testcase/tstRTR0ThreadPreemptionDriver.cpp

    r62721 r62725  
    197197     */
    198198    RTTHREAD ahThreads[RTCPUSET_MAX_CPUS];
    199     uint32_t cThreads = RTMpGetCount();
    200199    RTCPUSET OnlineSet;
    201200    RTMpGetOnlineSet(&OnlineSet);
  • trunk/src/VBox/Runtime/testcase/tstRTR0TimerDriver.cpp

    r62477 r62725  
    5151{
    5252#ifndef VBOX
     53    RT_NOREF3(argc, argv, envp);
    5354    RTPrintf("tstRTR0Timer: SKIPPED\n");
    5455    return RTEXITCODE_SKIPPED;
     56
    5557#else
     58    RT_NOREF1(envp);
     59
    5660    /*
    5761     * Init.
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