Clang static analyzer crash fix

This commit is contained in:
Sergey 2014-12-11 12:10:43 +03:00
parent e060360d9b
commit 9a01b76fec
2 changed files with 4 additions and 0 deletions

View File

@ -971,7 +971,9 @@ void Director::purgeDirector()
#pragma warning (push)
#pragma warning (disable: 4996)
#endif
#ifndef __clang_analyzer__
DrawPrimitives::free();
#endif
#if defined(__GNUC__) && ((__GNUC__ >= 4) || ((__GNUC__ == 3) && (__GNUC_MINOR__ >= 1)))
#pragma GCC diagnostic warning "-Wdeprecated-declarations"
#elif _MSC_VER >= 1400 //vs 2005 or higher

View File

@ -87,7 +87,9 @@ void ccDrawInit()
void ccDrawFree()
{
#ifndef __clang_analyzer__
DrawPrimitives::free();
#endif
}
void ccDrawPoint( const Vec2& point )