From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id 8LSrDoppVWMAxg8AWB0awg (envelope-from ) for ; Sun, 23 Oct 2022 12:19:22 -0400 Received: by simark.ca (Postfix, from userid 112) id 39C391E112; Sun, 23 Oct 2022 12:19:22 -0400 (EDT) Authentication-Results: simark.ca; dkim=pass (1024-bit key; secure) header.d=sourceware.org header.i=@sourceware.org header.a=rsa-sha256 header.s=default header.b=tjoaRfac; dkim-atps=neutral X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-3.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 Received: from sourceware.org (server2.sourceware.org [8.43.85.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by simark.ca (Postfix) with ESMTPS id DF6A01E0D5 for ; Sun, 23 Oct 2022 12:19:21 -0400 (EDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 4CDEE3851A8D for ; Sun, 23 Oct 2022 16:19:21 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 4CDEE3851A8D DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1666541961; bh=cdu+IVnv/cK+Ta3eXgHa2l87bDdxpIJ3QX9v2pGN0cU=; h=Date:To:Subject:References:In-Reply-To:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:Cc: From; b=tjoaRfacfmeZi2Nl9DvB8Pu1xv6zwbw46n/E04XX0keHXk9wGgYfFpohaQ/NLBKwz gq9mzVCEDNfaaS5HgVuV9nvqLqlpJAtYPAPZD47jvSQKUaYBgOBt/sdka4A5dtur2O 8SnVcHzoG/IEaVHCMMVo13adlaXuIZNDVYLbRagA= Received: from smtp.gentoo.org (smtp.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) by sourceware.org (Postfix) with ESMTP id 3E92A384B806 for ; Sun, 23 Oct 2022 16:19:01 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 3E92A384B806 Received: by smtp.gentoo.org (Postfix, from userid 559) id E87BF34117B; Sun, 23 Oct 2022 16:19:00 +0000 (UTC) Date: Sun, 23 Oct 2022 20:49:35 +0545 To: Tsukasa OI Subject: Re: [PATCH 26/40] sim/ppc: Remove getrusage declarations if possible Message-ID: Mail-Followup-To: Tsukasa OI , Andrew Burgess , Nick Clifton , gdb-patches@sourceware.org References: <4f666ba3e017785495a6d9e1242c827b4f74424c.1666258361.git.research_trasio@irq.a4lg.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="NJTRIz1Lsdfjq8rp" Content-Disposition: inline In-Reply-To: <4f666ba3e017785495a6d9e1242c827b4f74424c.1666258361.git.research_trasio@irq.a4lg.com> X-BeenThere: gdb-patches@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Mike Frysinger via Gdb-patches Reply-To: Mike Frysinger Cc: Nick Clifton , gdb-patches@sourceware.org Errors-To: gdb-patches-bounces+public-inbox=simark.ca@sourceware.org Sender: "Gdb-patches" --NJTRIz1Lsdfjq8rp Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On 20 Oct 2022 09:32, Tsukasa OI wrote: > Clang generates a warning if there is a function declaration/definition > with zero arguments. Such declarations/definitions without a prototype (= an > argument list) are deprecated forms of indefinite arguments > ("-Wdeprecated-non-prototype"). On the default configuration, it causes a > build failure (unless "--disable-werror" is specified). >=20 > This commit removes redundant and indefinite getrusage function declarati= ons > if the known getrusage declaration is found. just delete the code and be done. don't keep it around for ancient irrelev= ant systems that we never test on. -mike --NJTRIz1Lsdfjq8rp Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEEuQK1JxMl+JKsJRrUQWM7n+g39YEFAmNVWAMACgkQQWM7n+g3 9YF8ihAA1jmXFfwfA5j7JdddzXfyTLcY4XPv63WJucMaAKkkAGBWsHOtucWV3OgS XzK8x58bHxSxkf/PEyiqJ2zoywL/GRNJGRJsJcF22PLGA0WKeAgmNkB0muFbpsV3 pw9v30LA7jJa3L4Af7K535ozzg3AoYV7T+WBNaIkC9xksFSFSLE53pxfmSYD8VCV aCXpokcP3OAFfDhQNSML5Zlcxct/+0qPQ69NTIjX9k55A+xWsNhtJSRDk9WB7+ag djkr7lp2S5hG/MSdwE2pmO6mVxZ2RxY2OG+IRB/M2FLq+bG4DJfDqA5SLaNcQ6OX 7RjvFUbVNckSI5EUhMdfOfSqCb2z/oDJlFF3A4TvPGheayT+E5O/MrhbvR6aDnnn LizMiQDuYlQXUi8Bg7M8yGuSo+HTiGY1IQ66WGb0RHHbpbFBemXuHABRyqYgG/LH eJtFitzr1VsCIKKsZyLN7vOXWMnvzV3jCyofYuhj3odszW5z7dL5tVKykFxL8g5R PMpnYlpjBThz7iDmm9TT3lKzW8E1KZrgh205AMGssuYX34U9XwC8d05dU2mCW7cg ctUlYhjrsTSZfa8mdMCKxkJ55pzdhW4E/2GqNH0ZjfuRM+tUXqXdsx/MCj6ncxTW bZ4Q+/XuhaQdWEwn5dMKNTIqD7NiLfxkN/g2qDmAQ1luwhqwr04= =nOX3 -----END PGP SIGNATURE----- --NJTRIz1Lsdfjq8rp--