kubic71 / Gomoku-multiplayer

Multiplayer version of Gomoku with AI
1 stars 0 forks source link

Neobsahuje warnings #8

Open fan1x opened 4 years ago

fan1x commented 4 years ago

Pouzit v GCC WALL, to same ve VS. Ja dostal:

1>------ Rebuild All started: Project: GomokuVS, Configuration: Debug Win32 ------
1>AI_API.cpp
1>Board.cpp
1>CmdGame.cpp
1>CmdInterface.cpp
1>GameGUI.cpp
1>d:\projects\_students\cpp\gomoku-multiplayer\src\gamegui.cpp(13): warning C4267: 'argument': conversion from 'size_t' to 'char', possible loss of data
1>d:\projects\_students\cpp\gomoku-multiplayer\src\gamegui.cpp(150): warning C4244: '=': conversion from 'float' to 'int', possible loss of data
1>d:\projects\_students\cpp\gomoku-multiplayer\src\gamegui.cpp(151): warning C4244: '=': conversion from 'float' to 'int', possible loss of data
1>d:\projects\_students\cpp\gomoku-multiplayer\src\gamegui.cpp(229): warning C4244: 'argument': conversion from 'float' to 'unsigned int', possible loss of data
1>GameUtil.cpp
1>Main.cpp
1>PiskvorkyAI.cpp
1>PiskvorkyEval.cpp
1>d:\projects\_students\cpp\gomoku-multiplayer\src\piskvorkyeval.cpp(174): warning C4244: 'argument': conversion from 'int' to '_Ty', possible loss of data
1>        with
1>        [
1>            _Ty=float
1>        ]
kubic71 commented 4 years ago

Nedaří se mi ve VS-code přidat GCC option Wall :/, nevíš, jak na to?

fan1x commented 4 years ago

Nevim, ja nebyl schopny zprovoznit ani VS-code :D cekam, ze to musis pridat do jednoho z tech konfiguraku, -Wall je normalne parametr pro to GCC, zkus to pogooglit 😉

kubic71 commented 4 years ago

Tak -Wall by měl být v env/.all.mk v proměnné _CFLAGS_WARNINGS. Je divné, že mně to tyhle warningy neháže...