clintbellanger/flare-engine — pull request #298 by hansjoachim (2012-12-19 17:19:58+00:00)
Title: Enable some additional standard related checks for cppcheck

Enables checks related to the POSIX and c++11 standard in cppcheck which might discover additional issues. At least, the posix trigger two extra messages (the portability ones) which someone might want to take a look at.

$ cppcheck --verbose --enable=all --std=posix --std=c++11 --quiet `git ls-files src/\*.cpp`
[src/PowerManager.h:183]: (warning) Member variable 'Power::requires_equipped_item' is not initialized in the constructor.
[src/NPC.cpp:45]: (warning) Member variable 'NPC::stock' is not initialized in the constructor.
[src/UtilsFileSystem.cpp:91]: (portability) Found non reentrant function 'readdir'. For threadsafe applications it is recommended to use the reentrant replacement function 'readdir_r'
[src/UtilsFileSystem.cpp:118]: (portability) Found non reentrant function 'readdir'. For threadsafe applications it is recommended to use the reentrant replacement function 'readdir_r'