VirtualBox

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


Ignore:
Timestamp:
Jul 30, 2016 12:08:44 AM (8 years ago)
Author:
vboxsync
Message:

IPRT/testcases: warnings

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

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/testcase/tstLdr-2.cpp

    r62477 r62724  
    7171 * @param   pvUser          User argument.
    7272 */
    73 static DECLCALLBACK(int) testGetImport(RTLDRMOD hLdrMod, const char *pszModule, const char *pszSymbol, unsigned uSymbol, RTUINTPTR *pValue, void *pvUser)
    74 {
     73static DECLCALLBACK(int) testGetImport(RTLDRMOD hLdrMod, const char *pszModule, const char *pszSymbol, unsigned uSymbol,
     74                                       RTUINTPTR *pValue, void *pvUser)
     75{
     76    RT_NOREF5(hLdrMod, pszModule, pszSymbol, uSymbol, pvUser);
    7577    /* check the name format and only permit certain names */
    7678    *pValue = 0xf0f0f0f0;
  • trunk/src/VBox/Runtime/testcase/tstLdr-3.cpp

    r62477 r62724  
    7373static DECLCALLBACK(int) testEnumSymbol2(RTLDRMOD hLdrMod, const char *pszSymbol, unsigned uSymbol, RTUINTPTR Value, void *pvUser)
    7474{
     75    RT_NOREF1(hLdrMod);
    7576    PTESTNEARSYM pSym = (PTESTNEARSYM)pvUser;
    7677
     
    129130                                     void *pvUser)
    130131{
     132    RT_NOREF3(pCpu, u32Sel, pvUser);
     133
    131134    if (   uAddress > RTLdrSize(g_hLdrMod) + g_uLoadAddr
    132135        || uAddress < g_uLoadAddr)
     
    149152static DECLCALLBACK(int) MyReadBytes(PDISCPUSTATE pDis, uint8_t offInstr, uint8_t cbMinRead, uint8_t cbMaxRead)
    150153{
     154    RT_NOREF1(cbMaxRead);
    151155    uint8_t const *pbSrc = (uint8_t const *)((uintptr_t)pDis->uInstrAddr + (uintptr_t)pDis->pvUser + offInstr);
    152156    memcpy(&pDis->abInstr[offInstr], pbSrc, cbMinRead);
     
    207211 * @param   pvUser          User argument.
    208212 */
    209 static DECLCALLBACK(int) testGetImport(RTLDRMOD hLdrMod, const char *pszModule, const char *pszSymbol, unsigned uSymbol, RTUINTPTR *pValue, void *pvUser)
    210 {
     213static DECLCALLBACK(int) testGetImport(RTLDRMOD hLdrMod, const char *pszModule, const char *pszSymbol,
     214                                       unsigned uSymbol, RTUINTPTR *pValue, void *pvUser)
     215{
     216    RT_NOREF5(hLdrMod, pszModule, pszSymbol, uSymbol, pvUser);
    211217#if 1
    212218    RTUINTPTR BaseAddr = *(PCRTUINTPTR)pvUser;
     
    233239static DECLCALLBACK(int) testEnumSymbol1(RTLDRMOD hLdrMod, const char *pszSymbol, unsigned uSymbol, RTUINTPTR Value, void *pvUser)
    234240{
     241    RT_NOREF2(hLdrMod, pvUser);
    235242    RTPrintf("  %RTptr %s (%d)\n", Value, pszSymbol, uSymbol);
    236243    return VINF_SUCCESS;
  • trunk/src/VBox/Runtime/testcase/tstLdr-4.cpp

    r62477 r62724  
    5757static DECLCALLBACK(int) testGetImport(RTLDRMOD hLdrMod, const char *pszModule, const char *pszSymbol, unsigned uSymbol, RTUINTPTR *pValue, void *pvUser)
    5858{
     59    RT_NOREF4(hLdrMod, pszModule, uSymbol, pvUser);
    5960    if (     !strcmp(pszSymbol, "RTAssertMsg1Weak")     || !strcmp(pszSymbol, "_RTAssertMsg1Weak"))
    6061        *pValue = (uintptr_t)RTAssertMsg1Weak;
  • trunk/src/VBox/Runtime/testcase/tstRTHttp.cpp

    r62477 r62724  
    195195int main(int argc, char **argv)
    196196{
    197     unsigned cErrors = 0;
     197    //unsigned cErrors = 0;
    198198
    199199    RTR3InitExe(argc, &argv, 0);
  • trunk/src/VBox/Runtime/testcase/tstRTS3.cpp

    r62477 r62724  
    6060#ifdef TSTS3_SHOWPROGRESS
    6161    RTTestIPrintf(RTTESTLVL_ALWAYS, " Progress for %s - %d%% done.\n", (char*)pvUser, (int)uPercent);
    62 #endif /* TSTS3_SHOWPROGRESS */
     62#else
     63    RT_NOREF2(uPercent, pvUser);
     64#endif
    6365    return VINF_SUCCESS;
    6466}
  • trunk/src/VBox/Runtime/testcase/tstRTVfs.cpp

    r62477 r62724  
    8585int main(int argc, char **argv)
    8686{
     87    RT_NOREF2(argc, argv);
     88
    8789    /*
    8890     * Initialize IPRT and create the test.
  • trunk/src/VBox/Runtime/testcase/tstTSC.cpp

    r62477 r62724  
    419419        { "--calc-frequency",   'f', RTGETOPT_REQ_NOTHING },
    420420    };
    421     int iArg = 1;
    422421    int ch;
    423422    RTGETOPTUNION Value;
  • trunk/src/VBox/Runtime/testcase/tstVector.cpp

    r62477 r62724  
    7878RTVEC_DECL(tstSimple, void *)
    7979
    80 static void testVectorSimple(RTTEST hTest)
     80static void testVectorSimple(void)
    8181{
    8282    RTTestISub("Vector structure, no cleanup callback");
     
    142142RTVEC_DECL_DELETE(tstDelete, void *, deletePVoid)
    143143
    144 static void testVectorDelete(RTTEST hTest)
     144static void testVectorDelete(void)
    145145{
    146146    RTTestISub("Vector structure with cleanup by pointer callback");
     
    181181RTVEC_DECL_DELETE_BY_VALUE(tstDeleteValue, void *, deletePVoidValue)
    182182
    183 static void testVectorDeleteValue(RTTEST hTest)
     183static void testVectorDeleteValue(void)
    184184{
    185185    RTTestISub("Vector structure with cleanup by value callback");
     
    228228        return rcExit;
    229229
    230     testVectorSimple(hTest);
    231     testVectorDelete(hTest);
    232     testVectorDeleteValue(hTest);
     230    testVectorSimple();
     231    testVectorDelete();
     232    testVectorDeleteValue();
    233233
    234234    return RTTestSummaryAndDestroy(hTest);
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