mirror of https://gitee.com/openkylin/libvirt.git
meson.build: Compile with -Walloca
We are already compiling libvirt with -Wvla - so it does not make too much sense to still allow people to use alloca() instead. Thus put it on the list of things we want to warn about. Fortunately, there is currently no warning with this flag, so the current sources should be clean. Signed-off-by: Thomas Huth <thuth@redhat.com> Reviewed-by: Ján Tomko <jtomko@redhat.com> Signed-off-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
parent
6a7b8a3c0f
commit
55aaa1b037
|
@ -234,6 +234,7 @@ cc_flags += [
|
|||
'-Waddress-of-packed-member',
|
||||
'-Waggressive-loop-optimizations',
|
||||
'-Walloc-size-larger-than=@0@'.format(alloc_max.stdout().strip()),
|
||||
'-Walloca',
|
||||
'-Warray-bounds=2',
|
||||
'-Wattribute-alias=2',
|
||||
'-Wattribute-warning',
|
||||
|
|
Loading…
Reference in New Issue