From afbeae841012d92c413a3bccd720f1b9a1eb458d Mon Sep 17 00:00:00 2001 From: Stefan Agner Date: Thu, 21 May 2020 00:43:12 +0200 Subject: [PATCH] add warning if a function is not declared Add a warning if a function is not declared. Functions used only inside a compile unit still can be used, but have to be declared with the static keyword. --- meson.build | 1 + 1 file changed, 1 insertion(+) diff --git a/meson.build b/meson.build index 900e7b5..8c02ef3 100644 --- a/meson.build +++ b/meson.build @@ -14,6 +14,7 @@ host_system = host_machine.system() c_args = [ '-D_GNU_SOURCE', '-fvisibility=hidden', + '-Wmissing-prototypes', ] if buildtype != 'debug' and buildtype != 'debugoptimized'