mirror of https://github.com/axmolengine/axmol.git
Clang static analyzer crash fix
This commit is contained in:
parent
e060360d9b
commit
9a01b76fec
|
@ -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
|
||||
|
|
|
@ -87,7 +87,9 @@ void ccDrawInit()
|
|||
|
||||
void ccDrawFree()
|
||||
{
|
||||
#ifndef __clang_analyzer__
|
||||
DrawPrimitives::free();
|
||||
#endif
|
||||
}
|
||||
|
||||
void ccDrawPoint( const Vec2& point )
|
||||
|
|
Loading…
Reference in New Issue