Re: [PATCH 0/3] Fix various C++ related clang warnings

Simon Marchi
2016-11-23T22:18:41Z

On 2016-11-23 15:06, John Baldwin wrote:
> These patches fix various new C++ warnings reported by clang 3.8.0.
> The last one regarding std::move is a bit surprising I think, but
> there's a not-bad answer to a similar issue here:
>
> http://stackoverflow.com/questions/19267408/why-does-stdmove-prevent-rvo
>
> John Baldwin (3):
> Fix mismatched struct vs class tags.
> Add noexcept to custom non-throwing new operators.
> Do not use std::move when assigning an anonymous object to a
> unique_ptr.

Hi John,

When I tried to build gdb and gdbserver on Linux with clang, I got many
more warnings/errors (often relevant). I assume you have many more
fixups to do to actually get it building on FreeBSD with clang?

Simon