From: Vladimír Čunát Date: Tue, 25 Feb 2020 10:24:22 +0000 (+0100) Subject: meson: turn implicit-function warnings into hard errors X-Git-Tag: v5.1.0~34^2~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ca65ac9399e7dfc7a08984a6f39ff8491ba8eba8;p=thirdparty%2Fknot-resolver.git meson: turn implicit-function warnings into hard errors I just saw a case with bad luajit includes that linked successfully even with some of the macros getting this warning. --- diff --git a/meson.build b/meson.build index 38fef820c..bddbe49ec 100644 --- a/meson.build +++ b/meson.build @@ -115,6 +115,7 @@ add_project_arguments( '-Wformat-security', '-Wtype-limits', '-Wshadow', + '-Werror=implicit-function-declaration', # Probably messed up includes; implicit functions are evil! '-fvisibility=hidden', '-DHAVE_ASPRINTF=' + have_asprintf.to_int().to_string(), language: 'c',