How to avoid this warning at /usr/include/c++/10/bits/stl_uninitialized.h:84:9

Mauro Ziliani mauro@faresoftware.it
Wed Feb 9 16:22:01 GMT 2022


Good morning.

I'm working with gcc (Raspbian 10.2.1-6+rpi1) 10.2.1 20210110 and boost 
1.75.0 and CMake

When I compile some sources I get this warning


/usr/include/c++/10/bits/stl_uninitialized.h:84:9: note: parameter 
passing for argument of type 
‘std::move_iterator<boost::asio::detail::timer_queue<boost::asio::detail::chrono_time_traits<std::chrono::_V2::steady_clock, 
boost::asio::wait_traits<std::chrono::_V2::steady_clock> > 
 >::heap_entry*>’ changed in GCC 7.1

It is tedious to see this every time.


How can I avoid this?


I set(CXX_STANDARD 11) in CMakeLists.txt


Thanks all

MZ



More information about the Gcc-help mailing list