← Back to team overview

touch-packages team mailing list archive

[Bug 1016061] Re: [quantal] can't compile unity trunk

 

** Changed in: unity (Ubuntu)
       Status: New => Fix Released

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to unity in Ubuntu.
https://bugs.launchpad.net/bugs/1016061

Title:
  [quantal] can't compile unity trunk

Status in Unity:
  Fix Released
Status in “unity” package in Ubuntu:
  Fix Released

Bug description:
  unity trunk, revision 2434:

  ~/dev/unity/trunk/build$ make
  [...]
  [ 59%] Building CXX object tests/CMakeFiles/test-gtest.dir/test_hud_controller.cpp.o
  /home/marco/dev/unity/trunk/tests/test_hud_controller.cpp: In member function ‘virtual void {anonymous}::TestHudController::SetUp()’:
  /home/marco/dev/unity/trunk/tests/test_hud_controller.cpp:62:44: error: capture of non-variable ‘{anonymous}::TestHudController::view’ 
  /home/marco/dev/unity/trunk/tests/test_hud_controller.cpp:70:20: note: ‘{anonymous}::MockHudView::Ptr {anonymous}::TestHudController::view’ declared here
  /home/marco/dev/unity/trunk/tests/test_hud_controller.cpp: In lambda function:
  /home/marco/dev/unity/trunk/tests/test_hud_controller.cpp:62:58: error: ‘this’ was not captured for this lambda function
  /home/marco/dev/unity/trunk/tests/test_hud_controller.cpp:62:77: error: return-statement with a value, in function returning 'void' [-fpermissive]
  In file included from /usr/include/c++/4.7/bits/stl_algo.h:68:0,
                   from /usr/include/c++/4.7/algorithm:63,
                   from /usr/include/gmock/gmock-actions.h:39,
                   from /usr/include/gmock/gmock.h:58,
                   from /home/marco/dev/unity/trunk/tests/test_hud_controller.cpp:22:
  /usr/include/c++/4.7/functional: In instantiation of ‘static _Res std::_Function_handler<_Res(_ArgTypes ...), _Functor>::_M_invoke(const std::_Any_data&, _ArgTypes ...) [with _Res = unity::hud::AbstractView*; _Functor = {anonymous}::TestHudController::SetUp()::<lambda()>; _ArgTypes = {}]’:
  /usr/include/c++/4.7/functional:2298:6:   required from ‘std::function<_Res(_ArgTypes ...)>::function(_Functor, typename std::enable_if<(! std::is_integral<_Functor>::value), std::function<_Res(_ArgTypes ...)>::_Useless>::type) [with _Functor = {anonymous}::TestHudController::SetUp()::<lambda()>; _Res = unity::hud::AbstractView*; _ArgTypes = {}; typename std::enable_if<(! std::is_integral<_Functor>::value), std::function<_Res(_ArgTypes ...)>::_Useless>::type = std::function<unity::hud::AbstractView*()>::_Useless]’
  /home/marco/dev/unity/trunk/tests/test_hud_controller.cpp:62:78:   required from here
  /usr/include/c++/4.7/functional:1912:40: error: void value not ignored as it ought to be
  make[2]: ** [tests/CMakeFiles/test-gtest.dir/test_hud_controller.cpp.o] Erro 1
  make[1]: ** [tests/CMakeFiles/test-gtest.dir/all] Erro 2
  make: ** [all] Erro 2

To manage notifications about this bug go to:
https://bugs.launchpad.net/unity/+bug/1016061/+subscriptions