VirtualBox

Changeset 40281 in vbox for trunk/src/VBox/Devices/Input


Ignore:
Timestamp:
Feb 28, 2012 7:55:08 PM (13 years ago)
Author:
vboxsync
Message:

gcc warnings

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Input/PS2K.cpp

    r40280 r40281  
    848848static int PS2KProcessKeyEvent(PPS2K pThis, uint8_t u8HidCode, bool fKeyDown)
    849849{
    850     int             i = 0;
     850    unsigned int    i = 0;
    851851    key_def const   *pKeyDef;
    852852    uint8_t         abCodes[16];
     
    12551255    uint32_t    cPressed = 0;
    12561256    uint32_t    cbTMSSize = 0;
    1257     int         i;
    12581257
    12591258    LogFlowFunc(("Saving PS2K state\n"));
     
    12821281     * keys after a restore. Needs two passes.
    12831282     */
    1284     for (i = 0; i < sizeof(pThis->abDepressedKeys); ++i)
     1283    for (unsigned i = 0; i < sizeof(pThis->abDepressedKeys); ++i)
    12851284        if (pThis->abDepressedKeys[i])
    12861285            ++cPressed;
     
    12881287    SSMR3PutU32(pSSM, cPressed);
    12891288
    1290     for (i = 0; i < sizeof(pThis->abDepressedKeys); ++i)
     1289    for (unsigned i = 0; i < sizeof(pThis->abDepressedKeys); ++i)
    12911290        if (pThis->abDepressedKeys[i])
    12921291            SSMR3PutU8(pSSM, pThis->abDepressedKeys[i]);
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