【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

相關文章
相關標籤/搜索