Skip to content

Commit 8d5666d

Browse files
holtmannbonzini
authored andcommitted
libvduse: Add extra compiler warnings
In case libvhost-user is used externally, that projects compiler warnings might be more strict. Enforce an extra set of compiler warnings to catch issues early on. Signed-off-by: Marcel Holtmann <[email protected]> Suggested-by: Paolo Bonzini <[email protected]> Message-Id: <08daa1896ad8824e17d57d6a970bc0b4bee73ece.1671741278.git.marcel@holtmann.org> Signed-off-by: Paolo Bonzini <[email protected]>
1 parent 722b62d commit 8d5666d

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

subprojects/libvduse/meson.build

+7-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
project('libvduse', 'c',
22
license: 'GPL-2.0-or-later',
3-
default_options: ['c_std=gnu99'])
3+
default_options: ['warning_level=1', 'c_std=gnu99'])
4+
5+
cc = meson.get_compiler('c')
6+
add_project_arguments(cc.get_supported_arguments('-Wsign-compare',
7+
'-Wdeclaration-after-statement',
8+
'-Wstrict-aliasing'),
9+
native: false, language: 'c')
410

511
libvduse = static_library('vduse',
612
files('libvduse.c'),

0 commit comments

Comments
 (0)