From patchwork Thu Jul 19 10:00:09 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pedro Alves X-Patchwork-Id: 28479 Received: (qmail 115350 invoked by alias); 19 Jul 2018 10:00:38 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Delivered-To: mailing list gdb-patches@sourceware.org Received: (qmail 115044 invoked by uid 89); 19 Jul 2018 10:00:21 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-25.3 required=5.0 tests=AWL, BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, SPF_HELO_PASS autolearn=ham version=3.3.2 spammy= X-HELO: mx1.redhat.com Received: from mx3-rdu2.redhat.com (HELO mx1.redhat.com) (66.187.233.73) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 19 Jul 2018 10:00:20 +0000 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.rdu2.redhat.com [10.11.54.5]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id F2B4972622 for ; Thu, 19 Jul 2018 10:00:10 +0000 (UTC) Received: from localhost.localdomain (ovpn04.gateway.prod.ext.ams2.redhat.com [10.39.146.4]) by smtp.corp.redhat.com (Postfix) with ESMTP id A2EAC1C5AF for ; Thu, 19 Jul 2018 10:00:10 +0000 (UTC) From: Pedro Alves To: gdb-patches@sourceware.org Subject: [ob/pushed] gdbscm_wrap, really forward args Date: Thu, 19 Jul 2018 11:00:09 +0100 Message-Id: <20180719100009.14933-1-palves@redhat.com> Commit 557e56be2648 ("Eliminate most remaining cleanups under gdb/guile/") missed adding the && to Args to really forward the arguments properly. Noticed by inspection. gdb/ChangeLog: 2018-07-19 Pedro Alves * guile/guile-internal.h (gdbscm_wrap): Really make 'args' a forwarding reference. --- gdb/ChangeLog | 5 +++++ gdb/guile/guile-internal.h | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 92c93f494f5..c28b24053ca 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2018-07-19 Pedro Alves + + * guile/guile-internal.h (gdbscm_wrap): Really make 'args' a + forwarding reference. + 2018-07-18 Pedro Alves * guile/guile.c (gdbscm_execute_gdb_command): Adjust to use diff --git a/gdb/guile/guile-internal.h b/gdb/guile/guile-internal.h index 20e002a28e2..38671bfd881 100644 --- a/gdb/guile/guile-internal.h +++ b/gdb/guile/guile-internal.h @@ -672,7 +672,7 @@ extern void gdbscm_initialize_values (void); template SCM -gdbscm_wrap (Function &&func, Args... args) +gdbscm_wrap (Function &&func, Args &&... args) { SCM result = SCM_BOOL_F;