Tarendai/Shard — Issue #5: cppcheck warnings
Author: abma
Created: 2011-11-02 09:40:53+00:00
State: open

imo they all should be fixed:

[Shard/src/API/api_wrap.cpp:2001]: (style) C-style pointer casting
[Shard/src/API/api_wrap.cpp:2164]: (style) C-style pointer casting
[Shard/src/API/api_wrap.cpp:2987]: (style) C-style pointer casting
[Shard/src/API/api_wrap.cpp:3386]: (style) C-style pointer casting
[Shard/src/API/api_wrap.cpp:3611]: (style) C-style pointer casting
[Shard/src/API/api_wrap.cpp:4861]: (style) C-style pointer casting
[Shard/src/API/api_wrap.cpp:5408]: (style) C-style pointer casting
[Shard/src/API/api_wrap.cpp:5697]: (style) C-style pointer casting
[Shard/src/API/api_wrap.cpp:6085]: (style) C-style pointer casting
[Shard/src/API/api_wrap.cpp:6532]: (style) C-style pointer casting
[Shard/src/API/api_wrap.cpp:6757]: (warning) Redundant assignment of "clientdata" to itself
[Shard/src/API/interfaces/ResourceData.h:7]: (warning) Member variable 'SResourceData::capacity' is not initialised in the constructor.
[Shard/src/API/interfaces/ResourceData.h:7]: (warning) Member variable 'SResourceData::reserves' is not initialised in the constructor.
[Shard/src/API/interfaces/ResourceData.h:7]: (warning) Member variable 'SResourceData::gameframe' is not initialised in the constructor.
[Shard/src/API/interfaces/ResourceTransfer.h:6]: (warning) Member variable 'SResourceTransfer::gameframe' is not initialised in the constructor.
[Shard/src/API/spring/SpringUnit.cpp:119]: (style) Variable 'xs' is assigned a value that is never used
[Shard/src/TestAI.cpp:38]: (style) Variable 'size0' is assigned a value that is never used