From 9d59bb775d6294c8b447a88512f7bb43f12a25a8 Mon Sep 17 00:00:00 2001 From: Paolo Bonzini Date: Wed, 4 May 2022 23:53:55 +0200 Subject: meson: add extra warnings Enable extra warnings based no what QEMU uses. Signed-off-by: Paolo Bonzini --- meson.build | 3 +++ 1 file changed, 3 insertions(+) diff --git a/meson.build b/meson.build index 5605dc9..abbf0c7 100644 --- a/meson.build +++ b/meson.build @@ -54,6 +54,9 @@ host_system = host_machine.system() glib_dep = dependency('glib-2.0') cc = meson.get_compiler('c') +add_project_arguments(cc.get_supported_arguments('-Wmissing-prototypes', '-Wstrict-prototypes', + '-Wredundant-decls', '-Wundef', '-Wwrite-strings'), + language: 'c', native: false) platform_deps = [] -- cgit v1.1