Compile Warns

In diesem Bereich sind Themen vom Themenersteller als erledigt zu markieren, wenn die Frage beantwortet oder das Problem gelöst wurde. Das Thema wird daraufhin automatisch geschlossen.
Klicke hierzu auf "Thema bearbeiten > Als erledigt markieren".
  • Hi.. Im fixxing source warnings but I found few of them which I cant fix :/

    (Yeah, I know they are just warns but I want them fixxed :D ) I appreciate any help :)


    char.cpp warn

    Code
    1. char.cpp: In member function 'void CHARACTER::OpenMyShop(const char*, TShopItemTable*, BYTE, DWORD, int)':
    2. char.cpp:835: warning: comparison is always true due to limited range of data type
    3. char.cpp: In member function 'void CHARACTER::UpdateShopItems()':
    4. char.cpp:960: warning: comparison is always false due to limited range of data type
    5. char.cpp: In member function 'void CHARACTER::OpenShop(DWORD, const char*, bool)':
    6. char.cpp:1103: warning: comparison is always false due to limited range of data type
    7. char.cpp: In member function 'bool CHARACTER::ChannelChange(int)':
    8. char.cpp:8295: warning: 'wPort' may be used uninitialized in this function
    9. char.cpp:8294: warning: 'lAddr' may be used uninitialized in this function


    char.cpp



    char_item.cpp warn

    Code
    1. char_item.cpp: In member function 'bool CHARACTER::UseItemEx(CItem*, TItemPos)':
    2. char_item.cpp:6022: warning: comparison between signed and unsigned integer expressions
    3. char_item.cpp: In member function 'bool CHARACTER::EquipItem(CItem*, int)':
    4. char_item.cpp:7243: warning: array subscript has type 'char'



    char_item.cpp


    char_skill.cpp warn

    Code
    1. char_skill.cpp: In member function 'bool CHARACTER::UseSkill(DWORD, CHARACTER*, bool)':
    2. char_skill.cpp:2453: warning: comparison between signed and unsigned integer expressions



    char_skill.cpp



    PetSystem.cpp warn

    Code
    1. PetSystem.cpp: In member function 'void CPetActor::SetLevel(BYTE)':
    2. PetSystem.cpp:115: warning: comparison is always false due to limited range of data type


    PetSystem.cpp



    cmd_gm.cpp warn

    Code
    1. cmd_gm.cpp:3360:9: warning: multi-character character constant
    2. cmd_gm.cpp: In function 'void do_gift_refresh(CHARACTER*, const char*, int, int)':
    3. cmd_gm.cpp:1244: warning: operation on 'col' may be undefined
    4. cmd_gm.cpp: In function 'void do_shop_refresh_items(CHARACTER*, const char*, int, int)':
    5. cmd_gm.cpp:1740: warning: operation on 'col' may be undefined
    6. cmd_gm.cpp: In function 'void do_close_shop(CHARACTER*, const char*, int, int)':
    7. cmd_gm.cpp:1406: warning: 'channels' may be used uninitialized in this function


    cmd_gm.cpp



    entity_view.cpp warn


    Code
    1. entity_view.cpp: In member function 'void CFuncViewInsert::operator()(CEntity*)':
    2. entity_view.cpp:112: warning: comparison between signed and unsigned integer expressions


    entity_view.cpp


    Einmal editiert, zuletzt von EnZi ()

  • SolitaryVoice1362

    Hat das Thema geschlossen