This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[PATCH 0/3] Fix various C++ related clang warnings
- From: John Baldwin <jhb at FreeBSD dot org>
- To: gdb-patches at sourceware dot org
- Date: Wed, 23 Nov 2016 12:06:49 -0800
- Subject: [PATCH 0/3] Fix various C++ related clang warnings
- Authentication-results: sourceware.org; auth=none
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.
gdb/ChangeLog | 27 +++++++++++++++++++++++++++
gdb/ada-lang.c | 6 +++---
gdb/ax-gdb.c | 8 ++++----
gdb/breakpoint.c | 8 ++++----
gdb/breakpoint.h | 2 +-
gdb/common/new-op.c | 4 ++--
gdb/dtrace-probe.c | 3 +--
gdb/mi/mi-main.c | 4 ++--
gdb/parse.c | 2 +-
gdb/tracepoint.c | 14 +++++++-------
gdb/tracepoint.h | 4 ++--
11 files changed, 54 insertions(+), 28 deletions(-)
--
2.9.2