From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 42289 invoked by alias); 6 Mar 2019 14:58:54 -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 42280 invoked by uid 89); 6 Mar 2019 14:58:54 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=ham version=3.3.2 spammy=HTo:D*au, momentarily, talk, HTo:U*john X-HELO: rock.gnat.com Received: from rock.gnat.com (HELO rock.gnat.com) (205.232.38.15) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 06 Mar 2019 14:58:53 +0000 Received: from localhost (localhost.localdomain [127.0.0.1]) by filtered-rock.gnat.com (Postfix) with ESMTP id A6F4456158; Wed, 6 Mar 2019 09:58:51 -0500 (EST) Received: from rock.gnat.com ([127.0.0.1]) by localhost (rock.gnat.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id ewwq6zv5sN7R; Wed, 6 Mar 2019 09:58:51 -0500 (EST) Received: from murgatroyd (75-166-85-218.hlrn.qwest.net [75.166.85.218]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by rock.gnat.com (Postfix) with ESMTPSA id 3025D56108; Wed, 6 Mar 2019 09:58:51 -0500 (EST) From: Tom Tromey To: John Darrington Cc: gdb-patches@sourceware.org, tromey@adacore.com Subject: Re: Commit "Introduce ATTRIBUTE_UNUSED_RESULT and use it" breaks gdb build References: <20190306074924.lmwwwvk3ywpjkcfw@jocasta.intra> Date: Wed, 06 Mar 2019 14:58:00 -0000 In-Reply-To: <20190306074924.lmwwwvk3ywpjkcfw@jocasta.intra> (John Darrington's message of "Wed, 6 Mar 2019 08:49:24 +0100") Message-ID: <878sxsoxqt.fsf@tromey.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-SW-Source: 2019-03/txt/msg00093.txt.bz2 >>>>> "John" == John Darrington writes: John> CXX remote-sim.o John> /home/john/binutils-gdb/gdb/remote-sim.c: In function 'void gdbsim_target_open(const char*, int)': John> /home/john/binutils-gdb/gdb/remote-sim.c:765:18: error: ignoring return value of 'char** gdb_argv::release()', declared with attribute warn_unused_result [-Werror=unused-result] John> argv.release (); John> ^ Sorry about that. I will check in a patch to fix this momentarily. Someday I'd like gdb to either (1) get rid of remote-sim.c and talk to the sims using the remote protocol, or (2) arrange to always compile the bulk of remote-sim.c. (1) would be nice because it would also be more multi-target-capable. Tom