VirtualBox

Changeset 22312 in vbox


Ignore:
Timestamp:
Aug 17, 2009 11:33:30 PM (15 years ago)
Author:
vboxsync
Message:

VBoxUtils-darwin.cpp: shut up gcc warnings.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/darwin/VBoxUtils-darwin.cpp

    r21034 r22312  
    410410      ::GetEventParameter (evtRef, kEventParamKeyCode, typeUInt32, NULL,
    411411                           sizeof (keyCode), NULL, &keyCode);
    412       printf(" keyCode=%d (%#x) ", keyCode, keyCode);
     412      printf(" keyCode=%d (%#x) ", (unsigned)keyCode, (unsigned)keyCode);
    413413
    414414      char macCharCodes[8] = {0,0,0,0, 0,0,0,0};
     
    423423      ::GetEventParameter (evtRef, kEventParamKeyModifiers, typeUInt32, NULL,
    424424                           sizeof (modifierMask), NULL, &modifierMask);
    425       printf(" modifierMask=%08x", modifierMask);
     425      printf(" modifierMask=%08x", (unsigned)modifierMask);
    426426
    427427      UniChar keyUnicodes[8] = {0,0,0,0, 0,0,0,0};
     
    436436      ::GetEventParameter (evtRef, kEventParamKeyboardType, typeUInt32, NULL,
    437437                           sizeof (keyboardType), NULL, &keyboardType);
    438       printf(" keyboardType=%08x", keyboardType);
     438      printf(" keyboardType=%08x", (unsigned)keyboardType);
    439439
    440440      EventHotKeyID evtHotKeyId = {0,0};
    441441      ::GetEventParameter (evtRef, typeEventHotKeyID, typeEventHotKeyID, NULL,
    442442                           sizeof (evtHotKeyId), NULL, &evtHotKeyId);
    443       printf(" evtHotKeyId={signature=%08x, .id=%08x}", evtHotKeyId.signature, evtHotKeyId.id);
     443      printf(" evtHotKeyId={signature=%08x, .id=%08x}", (unsigned)evtHotKeyId.signature, (unsigned)evtHotKeyId.id);
    444444      printf("\n");
    445445  }
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