Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I get rid of "deprecated" warnings in legacy Cocos2Dx project

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

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

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

like image 224
Nick Avatar asked Oct 29 '22 01:10

Nick


1 Answers

I know it's not a final answer, but I found this.

Maybe if you find what's the code of deprecation warnings you can make an use of it.

I hope it helps.

like image 162
FcoRodr Avatar answered Nov 15 '22 05:11

FcoRodr