1 |
Autoconf has a builtin check to try figure out how to make the compiler |
2 |
error out on implicit function declarations. This check necessarily emits |
3 |
such a warning/error. We know that -Werror=implicit-function-declaration |
4 |
will work on any compiler we care about, so just force that to avoid noise. |
5 |
|
6 |
This means we don't have to try whitelist 'strchr'. |
7 |
|
8 |
Signed-off-by: Sam James <sam@g.o> |
9 |
--- |
10 |
profiles/base/make.defaults | 6 ++++++ |
11 |
1 file changed, 6 insertions(+) |
12 |
|
13 |
diff --git a/profiles/base/make.defaults b/profiles/base/make.defaults |
14 |
index ab69dbfae58ee..bdffd57047bbc 100644 |
15 |
--- a/profiles/base/make.defaults |
16 |
+++ b/profiles/base/make.defaults |
17 |
@@ -181,3 +181,9 @@ ADA_TARGET="gnat_2021" |
18 |
# Default targets for lua{,-single}.eclass |
19 |
LUA_SINGLE_TARGET="lua5-1" |
20 |
LUA_TARGETS="lua5-1" |
21 |
+ |
22 |
+# Sam James <sam@g.o> (2023-02-28) |
23 |
+# Reduce -Wimplicit-function-declaration noise from autoconf. Any compilers |
24 |
+# we care about should match these anyway. See https://wiki.gentoo.org/wiki/Modern_C_porting. |
25 |
+export ac_cv_c_undeclared_builtin_options="none needed" |
26 |
+export gl_cv_compiler_check_decl_option="-Werror=implicit-function-declaration" |
27 |
-- |
28 |
2.39.2 |