diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2022-05-04 23:53:55 +0200 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2022-05-04 23:58:25 +0200 |
commit | 9d59bb775d6294c8b447a88512f7bb43f12a25a8 (patch) | |
tree | 4dfaf5e5b1bf7a146b9ab787621598af22583dee | |
parent | 84b276c5abb13f4770b046b0efca2cb574ef6d02 (diff) | |
download | slirp-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.build | 3 |
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 = [] |