VirtualBox

Changeset 101 in vbox for trunk


Ignore:
Timestamp:
Jan 17, 2007 2:28:38 PM (18 years ago)
Author:
vboxsync
Message:

fixed warnings.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/PATM/PATMSSM.cpp

    r94 r101  
    6464 * @returns VBox status code.
    6565 * @param   pNode           Current node
    66  * @param   pcPatches       Pointer to patch counter
     66 * @param   pcPatches       Pointer to patch counter (uint32_t)
    6767 */
    6868static DECLCALLBACK(int) patmCountLeafPV(PAVLPVNODECORE pNode, void *pcPatches)
     
    7171    return VINF_SUCCESS;
    7272}
    73 #endif
    7473
    7574/**
     
    8079 * @returns VBox status code.
    8180 * @param   pNode           Current node
    82  * @param   pcPatches       Pointer to patch counter
     81 * @param   pcPatches       Pointer to patch counter (uint32_t)
    8382 */
    8483static DECLCALLBACK(int) patmCountLeaf(PAVLU32NODECORE pNode, void *pcPatches)
     
    8786    return VINF_SUCCESS;
    8887}
     88#endif /* VBOX_STRICT */
    8989
    9090/**
     
    189189     */
    190190#ifdef VBOX_STRICT
    191     int nrFixupRecs = 0;
     191    uint32_t nrFixupRecs = 0;
    192192    RTAvlPVDoWithAll(&pPatch->patch.FixupTree, true, patmCountLeafPV, &nrFixupRecs);
    193     AssertMsg(nrFixupRecs == pPatch->patch.nrFixups, ("Fixup inconsistency! counted %d vs %d\n", nrFixupRecs, pPatch->patch.nrFixups));
     193    AssertMsg((int32_t)nrFixupRecs == pPatch->patch.nrFixups, ("Fixup inconsistency! counted %d vs %d\n", nrFixupRecs, pPatch->patch.nrFixups));
    194194#endif
    195195    RTAvlPVDoWithAll(&pPatch->patch.FixupTree, true, patmSaveFixupRecords, pVM);
    196196
    197197#ifdef VBOX_STRICT
    198     int nrLookupRecords = 0;
     198    uint32_t nrLookupRecords = 0;
    199199    RTAvlU32DoWithAll(&pPatch->patch.Patch2GuestAddrTree, true, patmCountLeaf, &nrLookupRecords);
    200200    Assert(nrLookupRecords == pPatch->patch.nrPatch2GuestRecs);
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