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

问题1:git

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) {this

 

解决办法:blog

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

相关文章
相关标签/搜索