From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: 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 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=gentoo.org Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gentoo.org 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 From: Mike Frysinger To: Tsukasa OI Cc: Andrew Burgess , Nick Clifton , gdb-patches@sourceware.org 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-Spam-Status: No, score=-5.1 required=5.0 tests=BAYES_00,JMQ_SPF_NEUTRAL,KAM_DMARC_STATUS,SPF_HELO_PASS,SPF_PASS,TXREP autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: --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--