From 0df0773aaf6fa3b920ad078c534f4e1b4e203413 Mon Sep 17 00:00:00 2001
From: Carl Eugen Hoyos <ceffmpeg@gmail.com>
Date: Wed, 27 Mar 2019 15:15:54 +0100
Subject: [PATCH] configure: Use -Wno-gnu-variable-sized-type-not-at-end with
clang.
Fixes many warnings like the following:
libavcodec/vaapi_encode.h:253:34: warning: field 'misc' with variable sized type 'VAEncMiscParameterBuffer'
(aka 'struct _VAEncMiscParameterBuffer') not at the end of a struct or class is a GNU extension
[-Wgnu-variable-sized-type-not-at-end]
VAEncMiscParameterBuffer misc;
^
---
configure | 1 +
1 file changed, 1 insertion(+)
@@ -6760,6 +6760,7 @@ elif enabled clang; then
check_cflags -Werror=implicit-function-declaration
check_cflags -Werror=missing-prototypes
check_cflags -Werror=return-type
+ check_cflags -Wno-gnu-variable-sized-type-not-at-end
elif enabled cparser; then
add_cflags -Wno-missing-variable-declarations
add_cflags -Wno-empty-statement
--
1.7.10.4