How to get rid of "obsolete" warnings in an obsolete Cocos2Dx project

I have a legacy Cocos2D game project. When compiling the Android version, I get a lot of warnings:

warning: 'cocos2d::CCString' is deprecated (declared at ...) [-Wdeprecated-declarations] 

I do not plan to update the code, I just want to get rid of these warnings. I tried adding -Wdeprecated-declarations and -Wno-deprecated to APP_CPPFLAGS in Application.mk, but warnings are still generated.

+5
source share
1 answer

I know this is not the final answer, but I found this .

Perhaps if you find out which obsolescence warning code you can use.

Hope this helps.

+2
source

Source: https://habr.com/ru/post/1272265/


All Articles