public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* How to avoid this warning at /usr/include/c++/10/bits/stl_uninitialized.h:84:9
@ 2022-02-09 16:22 Mauro Ziliani
  2022-02-09 20:17 ` Jonathan Wakely
  0 siblings, 1 reply; 2+ messages in thread
From: Mauro Ziliani @ 2022-02-09 16:22 UTC (permalink / raw)
  To: gcc-help

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


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: How to avoid this warning at /usr/include/c++/10/bits/stl_uninitialized.h:84:9
  2022-02-09 16:22 How to avoid this warning at /usr/include/c++/10/bits/stl_uninitialized.h:84:9 Mauro Ziliani
@ 2022-02-09 20:17 ` Jonathan Wakely
  0 siblings, 0 replies; 2+ messages in thread
From: Jonathan Wakely @ 2022-02-09 20:17 UTC (permalink / raw)
  To: Mauro Ziliani; +Cc: gcc-help

On Wed, 9 Feb 2022, 16:32 Mauro Ziliani via Gcc-help, <gcc-help@gcc.gnu.org>
wrote:

> 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?
>

The documentation for -Wabi in the GCC manual explains this warning.

I set(CXX_STANDARD 11) in CMakeLists.txt
>


That's not very useful information, it tells us nothing about the warning
options you are passing to g++.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-02-09 20:18 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-02-09 16:22 How to avoid this warning at /usr/include/c++/10/bits/stl_uninitialized.h:84:9 Mauro Ziliani
2022-02-09 20:17 ` Jonathan Wakely

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).