Some of the warnings of generated by the “The Cocos2d and Box2d” template have be fixed in rc0.99 (prerelease). Below is how to fix the remaining warnings.
1. To fix the “has different visibility” warning, add “-fvisibility=hidden” inside the Projects-> Edit Project Settings under the Build Tab in Other C Flags. If the Other C Flags does not exist, add OTHER_CFLAGS under the “User-Defined” section of the Build Tab and add “-fvisibility=hidden” as its value.
An issue with Cocos2d Google code has been filed on this issue.
2. To fix the “Comparison is always true” warning generated from this line:
b2Assert(0 <= cache->count && cache->count <= 3)
make the following change since |count| is an unsigned int, it is never less than zero:
b2Assert(0 == cache->count && cache->count <= 3)
An issue with Box2D Google code has been filed on this issue.
Recent Comments