JNI Error: cc1plus: all warnings being treated as errors

来源:互联网 发布:手机变魔术软件蟑螂 编辑:程序博客网 时间:2024/06/08 17:41

错误类似:

error: variable 'idx' set but not used [-Werror=unused-but-set-variable]         index_t idx;                 ^cc1plus: all warnings being treated as errors

解决方式:

在 Application.mk中加入

APP_CPPFLAGS :=-Wno-unused-but-set-variable






0 0
原创粉丝点击