[FFmpeg-devel] [PATCH] configure: remove -Werror=vla

Guo, Yejun yejun.guo at intel.com
Wed Apr 7 11:32:08 EEST 2021


It is not a problem for pointers to VLA used to compute sizes and
offsets in an isolated function, so we can remove this flag.

We still need to keep in mind not to use actual VLAs on the stack.

Signed-off-by: Nicolas George <george at nsup.org>
Signed-off-by: Guo, Yejun <yejun.guo at intel.com>
---
 configure | 1 -
 1 file changed, 1 deletion(-)

diff --git a/configure b/configure
index d7a3f507e8..18e9a30ee0 100755
--- a/configure
+++ b/configure
@@ -6975,7 +6975,6 @@ elif enabled gcc; then
     check_cflags -Werror=implicit-function-declaration
     check_cflags -Werror=missing-prototypes
     check_cflags -Werror=return-type
-    check_cflags -Werror=vla
     check_cflags -Wformat
     check_cflags -fdiagnostics-color=auto
     enabled extra_warnings || check_disable_warning -Wno-maybe-uninitialized
-- 
2.17.1



More information about the ffmpeg-devel mailing list