]> git.ipfire.org Git - thirdparty/knot-resolver.git/commitdiff
meson: turn implicit-function warnings into hard errors
authorVladimír Čunát <vladimir.cunat@nic.cz>
Tue, 25 Feb 2020 10:24:22 +0000 (11:24 +0100)
committerVladimír Čunát <vladimir.cunat@nic.cz>
Fri, 6 Mar 2020 08:55:17 +0000 (09:55 +0100)
I just saw a case with bad luajit includes that linked successfully even
with some of the macros getting this warning.

meson.build

index 38fef820cb691c6ba6398c76b4bb5d80a3e1df2d..bddbe49ec18205e1dca8458b16dc4bcf469f0a16 100644 (file)
@@ -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',