This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]