From 3c2013de10bad9e18ac81ff46e954078a1effd2d Mon Sep 17 00:00:00 2001 From: Romain Vimont Date: Tue, 24 Oct 2023 23:03:10 +0200 Subject: [PATCH] Enable missing-prototypes warning Warn if a global function is defined without a previous prototype declaration. It is not enabled by default at warning_level=2. --- meson.build | 2 ++ 1 file changed, 2 insertions(+) diff --git a/meson.build b/meson.build index 847e33a1..ed3f42bf 100644 --- a/meson.build +++ b/meson.build @@ -7,6 +7,8 @@ project('scrcpy', 'c', 'b_ndebug=if-release', ]) +add_project_arguments('-Wmissing-prototypes', language: 'c') + if get_option('compile_app') subdir('app') endif