diff --git a/cocos/base/CCDirector.cpp b/cocos/base/CCDirector.cpp index f72907aa2e..54016e6009 100644 --- a/cocos/base/CCDirector.cpp +++ b/cocos/base/CCDirector.cpp @@ -971,6 +971,7 @@ void Director::purgeDirector() #pragma warning (push) #pragma warning (disable: 4996) #endif +//it will crash clang static analyzer so hide it if __clang_analyzer__ defined #ifndef __clang_analyzer__ DrawPrimitives::free(); #endif diff --git a/cocos/deprecated/CCDeprecated.cpp b/cocos/deprecated/CCDeprecated.cpp index 11d544b77f..5a3c2acee0 100644 --- a/cocos/deprecated/CCDeprecated.cpp +++ b/cocos/deprecated/CCDeprecated.cpp @@ -87,6 +87,7 @@ void ccDrawInit() void ccDrawFree() { +//it will crash clang static analyzer so hide it if __clang_analyzer__ defined #ifndef __clang_analyzer__ DrawPrimitives::free(); #endif