Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GCC 4.8.1 warnings #27

Closed
Ryp opened this issue Aug 12, 2014 · 2 comments
Closed

GCC 4.8.1 warnings #27

Ryp opened this issue Aug 12, 2014 · 2 comments
Milestone

Comments

@Ryp
Copy link
Contributor

Ryp commented Aug 12, 2014

[ 19%] Building CXX object src/CMakeFiles/leosac_lib.dir/core/moduleprotocol/moduleprotocol.cpp.o
In file included from /home/linaro/leosac/src/core/moduleprotocol/imoduleprotocol.hpp:12:0,
                 from /home/linaro/leosac/src/core/icore.hpp:13,
                 from /home/linaro/leosac/src/modules/imodule.hpp:11,
                 from /home/linaro/leosac/src/core/moduleprotocol/moduleprotocol.hpp:19,
                 from /home/linaro/leosac/src/core/moduleprotocol/moduleprotocol.cpp:7:
/home/linaro/leosac/src/core/moduleprotocol/authrequest.hpp: In instantiation of 'constexpr std::pair<_T1, _T2>::pair(_U1&&, _U2&&) [with _U1 = long unsigned int&; _U2 = AuthRequest&; <template-parameter-2-3> = void; _T1 = const long unsigned int; _T2 = AuthRequest]':
/usr/include/c++/4.8/bits/stl_tree.h:140:49:   required from 'std::_Rb_tree_node<_Val>::_Rb_tree_node(_Args&& ...) [with _Args = {long unsigned int&, AuthRequest&}; _Val = std::pair<const long unsigned int, AuthRequest>]'
/usr/include/c++/4.8/ext/new_allocator.h:120:4:   required from 'void __gnu_cxx::new_allocator<_Tp>::construct(_Up*, _Args&& ...) [with _Up = std::_Rb_tree_node<std::pair<const long unsigned int, AuthRequest> >; _Args = {long unsigned int&, AuthRequest&}; _Tp = std::_Rb_tree_node<std::pair<const long unsigned int, AuthRequest> >]'
/usr/include/c++/4.8/bits/alloc_traits.h:254:4:   required from 'static typename std::enable_if<std::allocator_traits<_Alloc>::__construct_helper<_Tp, _Args>::value, void>::type std::allocator_traits<_Alloc>::_S_construct(_Alloc&, _Tp*, _Args&& ...) [with _Tp = std::_Rb_tree_node<std::pair<const long unsigned int, AuthRequest> >; _Args = {long unsigned int&, AuthRequest&}; _Alloc = std::allocator<std::_Rb_tree_node<std::pair<const long unsigned int, AuthRequest> > >; typename std::enable_if<std::allocator_traits<_Alloc>::__construct_helper<_Tp, _Args>::value, void>::type = void]'
/usr/include/c++/4.8/bits/alloc_traits.h:393:57:   required from 'static decltype (_S_construct(__a, __p, (forward<_Args>)(std::allocator_traits::construct::__args)...)) std::allocator_traits<_Alloc>::construct(_Alloc&, _Tp*, _Args&& ...) [with _Tp = std::_Rb_tree_node<std::pair<const long unsigned int, AuthRequest> >; _Args = {long unsigned int&, AuthRequest&}; _Alloc = std::allocator<std::_Rb_tree_node<std::pair<const long unsigned int, AuthRequest> > >; decltype (_S_construct(__a, __p, (forward<_Args>)(std::allocator_traits::construct::__args)...)) = <type error>]'
/usr/include/c++/4.8/bits/stl_tree.h:408:36:   required from 'std::_Rb_tree_node<_Val>* std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::_M_create_node(_Args&& ...) [with _Args = {long unsigned int&, AuthRequest&}; _Key = long unsigned int; _Val = std::pair<const long unsigned int, AuthRequest>; _KeyOfValue = std::_Select1st<std::pair<const long unsigned int, AuthRequest> >; _Compare = std::less<long unsigned int>; _Alloc = std::allocator<std::pair<const long unsigned int, AuthRequest> >; std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::_Link_type = std::_Rb_tree_node<std::pair<const long unsigned int, AuthRequest> >*]'
/usr/include/c++/4.8/bits/stl_tree.h:1619:64:   required from 'std::pair<std::_Rb_tree_iterator<_Val>, bool> std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::_M_emplace_unique(_Args&& ...) [with _Args = {long unsigned int&, AuthRequest&}; _Key = long unsigned int; _Val = std::pair<const long unsigned int, AuthRequest>; _KeyOfValue = std::_Select1st<std::pair<const long unsigned int, AuthRequest> >; _Compare = std::less<long unsigned int>; _Alloc = std::allocator<std::pair<const long unsigned int, AuthRequest> >]'
/usr/include/c++/4.8/bits/stl_map.h:541:64:   required from 'std::pair<typename std::_Rb_tree<_Key, std::pair<const _Key, _Tp>, std::_Select1st<std::pair<const _Key, _Tp> >, _Compare, typename _Alloc::rebind<std::pair<const _Key, _Tp> >::other>::iterator, bool> std::map<_Key, _Tp, _Compare, _Alloc>::emplace(_Args&& ...) [with _Args = {long unsigned int&, AuthRequest&}; _Key = long unsigned int; _Tp = AuthRequest; _Compare = std::less<long unsigned int>; _Alloc = std::allocator<std::pair<const long unsigned int, AuthRequest> >; typename std::_Rb_tree<_Key, std::pair<const _Key, _Tp>, std::_Select1st<std::pair<const _Key, _Tp> >, _Compare, typename _Alloc::rebind<std::pair<const _Key, _Tp> >::other>::iterator = std::_Rb_tree_iterator<std::pair<const long unsigned int, AuthRequest> >]'
/home/linaro/leosac/src/core/moduleprotocol/moduleprotocol.cpp:73:43:   required from here
/home/linaro/leosac/src/core/moduleprotocol/authrequest.hpp:32:5: warning: unused parameter 'other' [-Wunused-parameter]
In file included from /usr/include/c++/4.8/bits/stl_algobase.h:64:0,
                 from /usr/include/c++/4.8/bits/stl_tree.h:61,
                 from /usr/include/c++/4.8/map:60,
                 from /home/linaro/leosac/src/core/moduleprotocol/moduleprotocol.hpp:12,
                 from /home/linaro/leosac/src/core/moduleprotocol/moduleprotocol.cpp:7:
/usr/include/c++/4.8/bits/stl_pair.h:145:64: note: synthesized method 'AuthRequest::AuthRequest(const AuthRequest&)' first required here

Warning coming from gcc default denerated method

@Ryp
Copy link
Contributor Author

Ryp commented Aug 12, 2014

[ 29%] Building CXX object src/CMakeFiles/leosac_lib.dir/hardware/device/dipswitch.cpp.o
In file included from /home/linaro/leosac/src/hardware/device/dipswitch.hpp:14:0,
                 from /home/linaro/leosac/src/hardware/device/dipswitch.cpp:7:
/home/linaro/leosac/src/hardware/device/gpiodevice.hpp: In instantiation of 'void std::_Construct(_T1*, _Args&& ...) [with _T1 = GpioDevice; _Args = {GpioDevice}]':
/usr/include/c++/4.8/bits/stl_uninitialized.h:75:53:   required from 'static _ForwardIterator std::__uninitialized_copy<_TrivialValueTypes>::__uninit_copy(_InputIterator, _InputIterator, _ForwardIterator) [with _InputIterator = std::move_iterator<GpioDevice*>; _ForwardIterator = GpioDevice*; bool _TrivialValueTypes = false]'
/usr/include/c++/4.8/bits/stl_uninitialized.h:117:41:   required from '_ForwardIterator std::uninitialized_copy(_InputIterator, _InputIterator, _ForwardIterator) [with _InputIterator = std::move_iterator<GpioDevice*>; _ForwardIterator = GpioDevice*]'
/usr/include/c++/4.8/bits/stl_uninitialized.h:258:63:   required from '_ForwardIterator std::__uninitialized_copy_a(_InputIterator, _InputIterator, _ForwardIterator, std::allocator<_Tp>&) [with _InputIterator = std::move_iterator<GpioDevice*>; _ForwardIterator = GpioDevice*; _Tp = GpioDevice]'
/usr/include/c++/4.8/bits/stl_uninitialized.h:281:67:   required from '_ForwardIterator std::__uninitialized_move_if_noexcept_a(_InputIterator, _InputIterator, _ForwardIterator, _Allocator&) [with _InputIterator = GpioDevice*; _ForwardIterator = GpioDevice*; _Allocator = std::allocator<GpioDevice>]'
/usr/include/c++/4.8/bits/vector.tcc:415:43:   required from 'void std::vector<_Tp, _Alloc>::_M_emplace_back_aux(_Args&& ...) [with _Args = {IGPIOProvider&, std::basic_string<char, std::char_traits<char>, std::allocator<char> >}; _Tp = GpioDevice; _Alloc = std::allocator<GpioDevice>]'
/usr/include/c++/4.8/bits/vector.tcc:101:54:   required from 'void std::vector<_Tp, _Alloc>::emplace_back(_Args&& ...) [with _Args = {IGPIOProvider&, std::basic_string<char, std::char_traits<char>, std::allocator<char> >}; _Tp = GpioDevice; _Alloc = std::allocator<GpioDevice>]'
/home/linaro/leosac/src/hardware/device/dipswitch.cpp:34:79:   required from here
/home/linaro/leosac/src/hardware/device/gpiodevice.hpp:24:5: warning: unused parameter 'other' [-Wunused-parameter]
In file included from /usr/include/c++/4.8/memory:64:0,
                 from /usr/include/boost/property_tree/ptree_fwd.hpp:18,
                 from /usr/include/boost/property_tree/ptree.hpp:15,
                 from /home/linaro/leosac/src/config/ixmlserializable.hpp:10,
                 from /home/linaro/leosac/src/hardware/iserializabledevice.hpp:11,
                 from /home/linaro/leosac/src/hardware/device/dipswitch.hpp:12,
                 from /home/linaro/leosac/src/hardware/device/dipswitch.cpp:7:
/usr/include/c++/4.8/bits/stl_construct.h:75:7: note: synthesized method 'GpioDevice::GpioDevice(GpioDevice&&)' first required here

Same type of warning

@Ryp
Copy link
Contributor Author

Ryp commented Aug 13, 2014

They are just here because gcc 4.8.1 does not fully support C++11's default keyword

@Ryp Ryp closed this as completed Aug 13, 2014
@Ryp Ryp modified the milestone: 0.3 Aug 20, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant