aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2022-05-04 23:53:55 +0200
committerPaolo Bonzini <pbonzini@redhat.com>2022-05-04 23:58:25 +0200
commit9d59bb775d6294c8b447a88512f7bb43f12a25a8 (patch)
tree4dfaf5e5b1bf7a146b9ab787621598af22583dee
parent84b276c5abb13f4770b046b0efca2cb574ef6d02 (diff)
downloadslirp-9d59bb775d6294c8b447a88512f7bb43f12a25a8.zip
slirp-9d59bb775d6294c8b447a88512f7bb43f12a25a8.tar.gz
slirp-9d59bb775d6294c8b447a88512f7bb43f12a25a8.tar.bz2
meson: add extra warnings
Enable extra warnings based no what QEMU uses. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
-rw-r--r--meson.build3
1 files changed, 3 insertions, 0 deletions
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 = []