VirtualBox

Changeset 62724 in vbox


Ignore:
Timestamp:
Jul 30, 2016 12:08:44 AM (9 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
109298
Message:

IPRT/testcases: warnings

Location:
trunk/src/VBox/Runtime
Files:
11 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);
  • trunk/src/VBox/Runtime/tools/RTDbgSymCache.cpp

    r62477 r62724  
    220220     * Create the directories in the path.
    221221     */
    222     char chSaved = RTPATH_SLASH;
    223222    for (unsigned i = 0; i < 6; i++, cch += 5)
    224223    {
     
    576575{
    577576    /* This shouldn't happen, figure out what to do if it does. */
     577    RT_NOREF_PV(pCfg);
    578578    return RTMsgErrorRc(VERR_NOT_IMPLEMENTED,
    579579                        "'%s' is an OS X image file, did you point me to a file inside a .dSYM or .sym file?",
     
    592592static int rtDbgSymCacheAddDebugPdb(const char *pszPath, PCRTDBGSYMCACHEADDCFG pCfg, RTFILE hFile)
    593593{
     594    RT_NOREF2(pCfg, hFile);
    594595    return RTMsgErrorRc(VERR_NOT_IMPLEMENTED, "PDB support not implemented: '%s'", pszPath);
    595596}
     
    11091110                                            bool fOverwriteOnConflict)
    11101111{
     1112    RT_NOREF1(fOverwriteOnConflict);
    11111113    RTDBGSYMCACHEADDCFG Cfg;
    11121114    Cfg.fRecursive      = fRecursive;
     
    11961198        return RTMsgErrorExit(RTEXITCODE_FAILURE, "RTGetOptInit failed: %Rrc", rc);
    11971199
    1198     uint32_t        cAdded = 0;
     1200    //uint32_t        cAdded = 0;
    11991201    RTGETOPTUNION   ValueUnion;
    12001202    int             chOpt;
  • trunk/src/VBox/Runtime/tools/RTGzip.cpp

    r62477 r62724  
    8585{
    8686    /** @todo Add isatty() to IPRT. */
     87    RT_NOREF1(enmStdHandle);
    8788    return false;
    8889}
     
    189190
    190191    uint32_t cRefs = RTVfsIoStrmRelease(*phVfsDst);
    191     Assert(cRefs > 0);
     192    Assert(cRefs > 0); RT_NOREF_PV(cRefs);
    192193    *phVfsDst = hVfsGzip;
    193194
     
    216217
    217218    uint32_t cRefs = RTVfsIoStrmRelease(*phVfsSrc);
    218     Assert(cRefs > 0);
     219    Assert(cRefs > 0); RT_NOREF_PV(cRefs);
    219220    *phVfsSrc = hVfsGunzip;
    220221
     
    261262static RTEXITCODE gzipTestFile(PRTVFSIOSTREAM phVfsSrc, PCRTGZIPCMDOPTS pOpts)
    262263{
     264    RT_NOREF_PV(pOpts);
     265
    263266    /*
    264267     * Read the whole stream.
     
    284287static RTEXITCODE gzipListFile(PRTVFSIOSTREAM phVfsSrc, PCRTGZIPCMDOPTS pOpts)
    285288{
     289    RT_NOREF2(phVfsSrc, pOpts);
    286290    return RTMsgErrorExit(RTEXITCODE_FAILURE, "Listing has not been implemented");
    287291}
     
    485489    RTEXITCODE  rcExit      = RTEXITCODE_SUCCESS;
    486490    unsigned    cProcessed  = 0;
    487     RTVFSIOSTREAM hVfsStdOut= NIL_RTVFSIOSTREAM;
     491    //RTVFSIOSTREAM hVfsStdOut= NIL_RTVFSIOSTREAM;
    488492
    489493    RTGETOPTSTATE GetState;
  • trunk/src/VBox/Runtime/tools/RTSignTool.cpp

    r62570 r62724  
    417417            return RTErrInfoSetF(pErrInfo, VERR_NOT_SUPPORTED, "Unsupported signature type: %d", enmSignature);
    418418    }
    419     return VINF_SUCCESS;
    420419}
    421420
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette