diff options
author | Sam James <sam@gentoo.org> | 2023-02-28 18:31:14 +0000 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2023-02-28 19:10:36 +0000 |
commit | 830c46baf116bf8fca5b981723122ece4bfcbcd9 (patch) | |
tree | 6fdb552ceef2415aeb8de81334b0f86e8322d11b /profiles/base | |
parent | app-i18n/ibus-libpinyin: Stabilize 1.13.1 x86, #898400 (diff) | |
download | gentoo-830c46baf116bf8fca5b981723122ece4bfcbcd9.tar.gz gentoo-830c46baf116bf8fca5b981723122ece4bfcbcd9.tar.bz2 gentoo-830c46baf116bf8fca5b981723122ece4bfcbcd9.zip |
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 <sam@gentoo.org>
Diffstat (limited to 'profiles/base')
-rw-r--r-- | profiles/base/make.defaults | 6 |
1 files changed, 6 insertions, 0 deletions
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 <sam@gentoo.org> (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" |