From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 69184158030 for ; Tue, 28 Feb 2023 19:11:12 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id B303FE079E; Tue, 28 Feb 2023 19:11:11 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 9D051E079E for ; Tue, 28 Feb 2023 19:11:11 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id C801E335DCC for ; Tue, 28 Feb 2023 19:11:10 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 609FA865 for ; Tue, 28 Feb 2023 19:11:09 +0000 (UTC) From: "Sam James" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sam James" Message-ID: <1677611436.830c46baf116bf8fca5b981723122ece4bfcbcd9.sam@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: profiles/base/ X-VCS-Repository: repo/gentoo X-VCS-Files: profiles/base/make.defaults X-VCS-Directories: profiles/base/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: 830c46baf116bf8fca5b981723122ece4bfcbcd9 X-VCS-Branch: master Date: Tue, 28 Feb 2023 19:11:09 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 4fc36ebe-5e7a-444c-9094-eb4dbf0b1b2e X-Archives-Hash: dad890f5d58145c40c24100e64871fa8 commit: 830c46baf116bf8fca5b981723122ece4bfcbcd9 Author: Sam James gentoo org> AuthorDate: Tue Feb 28 18:31:14 2023 +0000 Commit: Sam James gentoo org> CommitDate: Tue Feb 28 19:10:36 2023 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=830c46ba profiles/base: add cache vars for -Wimplicit-function-declaration silencing Autoconf has a builtin check to try figure out how to make the compiler error out on implicit function declarations. This check necessarily emits such a warning/error. We know that -Werror=implicit-function-declaration will work on any compiler we care about, so just force that to avoid noise. This means we don't have to try whitelist 'strchr'. Bug: https://bugs.gentoo.org/870412 Signed-off-by: Sam James gentoo.org> profiles/base/make.defaults | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/profiles/base/make.defaults b/profiles/base/make.defaults index ab69dbfae58e..68ff36a90cc8 100644 --- a/profiles/base/make.defaults +++ b/profiles/base/make.defaults @@ -181,3 +181,9 @@ ADA_TARGET="gnat_2021" # Default targets for lua{,-single}.eclass LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" + +# Sam James (2023-02-28) +# Reduce -Wimplicit-function-declaration noise from autoconf. Any compilers +# we care about should match these anyway. See https://wiki.gentoo.org/wiki/Modern_C_porting. +ac_cv_c_undeclared_builtin_options="none needed" +gl_cv_compiler_check_decl_option="-Werror=implicit-function-declaration"