From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 39746 invoked by alias); 23 Nov 2016 20:07:59 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Received: (qmail 39712 invoked by uid 89); 23 Nov 2016 20:07:58 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.1 required=5.0 tests=AWL,BAYES_00,SPF_HELO_PASS,SPF_SOFTFAIL autolearn=no version=3.3.2 spammy=Baldwin, baldwin, Hx-languages-length:871, HX-Greylist:EST X-HELO: mail.baldwin.cx Received: from bigwig.baldwin.cx (HELO mail.baldwin.cx) (96.47.65.170) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 23 Nov 2016 20:07:48 +0000 Received: from ralph.com (c-73-231-226-104.hsd1.ca.comcast.net [73.231.226.104]) by mail.baldwin.cx (Postfix) with ESMTPSA id 2B9E310AA27 for ; Wed, 23 Nov 2016 15:07:46 -0500 (EST) From: John Baldwin To: gdb-patches@sourceware.org Subject: [PATCH 0/3] Fix various C++ related clang warnings Date: Wed, 23 Nov 2016 20:07:00 -0000 Message-Id: <20161123200652.89209-1-jhb@FreeBSD.org> X-IsSubscribed: yes X-SW-Source: 2016-11/txt/msg00682.txt.bz2 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