【Android编译error】error: lambda capture 'this' is not used [-Werror,-Wunused-lambda-capture]

问题1:

external/libweave/src/privet/privet_handler.cc:451:16: error: lambda capture 'this' is not used [-Werror,-Wunused-lambda-capture]
auto pred = [this](const UpdateRequestParameters& params) {
^
external/libweave/src/privet/privet_handler.cc:465:16: error: lambda capture 'this' is not used [-Werror,-Wunused-lambda-capture]
auto pred = [this](const UpdateRequestParameters& params) {
^
external/libweave/src/privet/privet_handler.cc:477:16: error: lambda capture 'this' is not used [-Werror,-Wunused-lambda-capture]
auto pred = [this](const UpdateRequestParameters& params) {

解决办法:

找到对应的git仓下的Android.mk文件,打开删除-Werror即可解决。

原文地址:https://www.cnblogs.com/zhuwei0901-yanwu/p/10387880.html