Ticket #3148: gob-vc80-warnings.diff

File gob-vc80-warnings.diff, 1.8 KB (added by bluegr, 17 years ago)

Fix for some of the VC80 warnings in the gob engine

  • imd.cpp

     
    961961}
    962962
    963963void ImdPlayer::seekFrame(Imd *imdPtr, int16 frame, int16 from, bool restart) {
    964         uint32 framePos;
     964        uint32 framePos = 0;
    965965
    966966        if (!imdPtr)
    967967                return;
  • inter_v1.cpp

     
    22172217}
    22182218
    22192219bool Inter_v1::o1_readData(OpFuncParams &params) {
    2220         int16 retSize;
     2220        int16 retSize = 0;
    22212221        int16 size;
    22222222        int16 dataVar;
    22232223        int16 offset;
  • inter_v2.cpp

     
    18141814}
    18151815
    18161816bool Inter_v2::o2_readData(OpFuncParams &params) {
    1817         int32 retSize;
     1817        int32 retSize = 0;
    18181818        int32 size;
    18191819        int32 offset;
    18201820        int16 dataVar;
     
    20172017        int16 id;
    20182018        int16 slot;
    20192019        uint16 slotIdMask;
    2020         uint32 dataSize;
     2020        uint32 dataSize = 0;
    20212021        SoundType type;
    20222022        SoundSource source;
    20232023
  • inter_v3.cpp

     
    715715        int16 totTextItem;
    716716        int16 part, curPart = 0;
    717717        int16 offX = 0, offY = 0;
    718         int16 collId, collCmd;
     718        int16 collId = 0, collCmd;
    719719        uint32 stringStartVar, stringVar;
    720720        bool end;
    721721
  • util.cpp

     
    8282void Util::processInput(bool scroll) {
    8383        Common::Event event;
    8484        Common::EventManager *eventMan = g_system->getEventManager();
    85         int16 x, y;
     85        int16 x = 0, y = 0;
    8686        bool hasMove = false;
    8787
    8888        while (eventMan->pollEvent(event)) {