diff options
author | John Levon <john.levon@nutanix.com> | 2022-05-12 20:48:30 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-12 20:48:30 +0100 |
commit | 359d8da193f45542f4ccf633a1c9dd28dd9af1a9 (patch) | |
tree | a46f5b083e7dbee4ef1ca2fda83c10c2a6c5580a | |
parent | ffdd1d68d9a8975f20d73637e4ff39bb64d00efb (diff) | |
download | libvfio-user-359d8da193f45542f4ccf633a1c9dd28dd9af1a9.zip libvfio-user-359d8da193f45542f4ccf633a1c9dd28dd9af1a9.tar.gz libvfio-user-359d8da193f45542f4ccf633a1c9dd28dd9af1a9.tar.bz2 |
re-instate -Werror (#681)
This got lost in the translation to meson; add -Werror for debug builds.
Signed-off-by: John Levon <john.levon@nutanix.com>
Reviewed-by: Swapnil Ingle <swapnil.ingle@nutanix.com>
-rw-r--r-- | meson.build | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/meson.build b/meson.build index 2e08cc5..753a463 100644 --- a/meson.build +++ b/meson.build @@ -49,6 +49,10 @@ common_cflags = [ '-D_GNU_SOURCE', ] +if opt_debug + common_cflags += '-Werror' +endif + if opt_debug_logs.enabled() or (not opt_debug_logs.disabled() and opt_debug) common_cflags += ['-DDEBUG'] endif |