From babbac4e38a67ae06266b351a12a82434734ff43 Mon Sep 17 00:00:00 2001 From: Sergey Date: Tue, 6 Jan 2015 14:45:10 +0300 Subject: [PATCH] comments --- cocos/base/CCDirector.cpp | 1 + cocos/deprecated/CCDeprecated.cpp | 1 + 2 files changed, 2 insertions(+) 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