public inbox for gdb-patches@sourceware.org
 help / color / mirror / Atom feed
* [PATCH 0/3] Fix various C++ related clang warnings
@ 2016-11-23 20:07 John Baldwin
  2016-11-23 20:08 ` [PATCH 3/3] Do not use std::move when assigning an anonymous object to a unique_ptr John Baldwin
                   ` (3 more replies)
  0 siblings, 4 replies; 25+ messages in thread
From: John Baldwin @ 2016-11-23 20:07 UTC (permalink / raw)
  To: gdb-patches

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

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

end of thread, other threads:[~2016-11-30 17:59 UTC | newest]

Thread overview: 25+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-11-23 20:07 [PATCH 0/3] Fix various C++ related clang warnings John Baldwin
2016-11-23 20:08 ` [PATCH 3/3] Do not use std::move when assigning an anonymous object to a unique_ptr John Baldwin
2016-11-23 21:19   ` Simon Marchi
2016-11-23 23:31     ` John Baldwin
2016-11-24  0:08       ` Simon Marchi
2016-11-24 16:52         ` Pedro Alves
2016-11-23 20:08 ` [PATCH 1/3] Fix mismatched struct vs class tags John Baldwin
2016-11-23 20:58   ` Simon Marchi
2016-11-23 23:23     ` John Baldwin
2016-11-24 17:02       ` Pedro Alves
2016-11-24 17:47         ` John Baldwin
2016-11-24 18:50           ` Pedro Alves
2016-11-24 19:15             ` John Baldwin
2016-11-30 11:39               ` Pedro Alves
2016-11-30 16:23                 ` John Baldwin
2016-11-30 16:38                   ` Pedro Alves
2016-11-30 16:52                     ` Simon Marchi
2016-11-30 16:51                   ` Simon Marchi
2016-11-30 17:08                     ` Pedro Alves
2016-11-30 17:54                       ` Simon Marchi
2016-11-30 17:59                     ` Eli Zaretskii
2016-11-23 20:08 ` [PATCH 2/3] Add noexcept to custom non-throwing new operators John Baldwin
2016-11-24 17:03   ` Pedro Alves
2016-11-23 22:18 ` [PATCH 0/3] Fix various C++ related clang warnings Simon Marchi
2016-11-23 23:23   ` John Baldwin

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).