From: Thomas Huth Date: Thu, 27 May 2021 10:45:54 +0000 (+0200) Subject: meson.build: Compile with -Walloca X-Git-Tag: v7.5.0-rc1~185 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=55aaa1b037df0a6e5815e27c9be1afcb74781cf3;p=thirdparty%2Flibvirt.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 Reviewed-by: Ján Tomko Signed-off-by: Ján Tomko --- diff --git a/meson.build b/meson.build index 1844c73e67..40e99fec0c 100644 --- a/meson.build +++ b/meson.build @@ -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',