[Commits] [wesnoth/wesnoth] cc1f33: resolve -Wunused-lambda-capture warning (clang)
GitHub
noreply at github.com
Sun Apr 2 10:35:02 UTC 2017
Branch: refs/heads/master
Home: https://github.com/wesnoth/wesnoth
Commit: cc1f33a32bac3db5efaaa579dd7e13ee239a3036
https://github.com/wesnoth/wesnoth/commit/cc1f33a32bac3db5efaaa579dd7e13ee239a3036
Author: Matthias Krüger <matthias.krueger at famsik.de>
Date: 2017-04-02 (Sun, 02 Apr 2017)
Changed paths:
M src/formula/variant.cpp
Log Message:
-----------
resolve -Wunused-lambda-capture warning (clang)
Was:
[ 45%/256/3/557,1168.424] Building CXX object src/CMakeFiles/wesnoth-game.dir/formula/variant.cpp.o
../src/formula/variant.cpp:647:68: warning: lambda capture 'this' is not used [-Wunused-lambda-capture]
return value_cast<game_logic::variant_list>()->list_op(v.value_, [this](variant& v1, variant& v2) { return v1 + v2; });
^
../src/formula/variant.cpp:653:68: warning: lambda capture 'this' is not used [-Wunused-lambda-capture]
return value_cast<game_logic::variant_list>()->list_op(v.value_, [this](variant& v1, variant& v2) { return v1 - v2; });
^
../src/formula/variant.cpp:659:68: warning: lambda capture 'this' is not used [-Wunused-lambda-capture]
return value_cast<game_logic::variant_list>()->list_op(v.value_, [this](variant& v1, variant& v2) { return v1 * v2; });
^
../src/formula/variant.cpp:665:68: warning: lambda capture 'this' is not used [-Wunused-lambda-capture]
return value_cast<game_logic::variant_list>()->list_op(v.value_, [this](variant& v1, variant& v2) { return v1 / v2; });
^
4 warnings generated.
More information about the Commits
mailing list