From patchwork Wed Apr 7 08:32:08 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Guo, Yejun" X-Patchwork-Id: 26792 Return-Path: X-Original-To: patchwork@ffaux-bg.ffmpeg.org Delivered-To: patchwork@ffaux-bg.ffmpeg.org Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org [79.124.17.100]) by ffaux.localdomain (Postfix) with ESMTP id 8CF4644BA75 for ; Wed, 7 Apr 2021 11:44:03 +0300 (EEST) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 6B0FF687FA1; Wed, 7 Apr 2021 11:44:03 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 2694A680A4F for ; Wed, 7 Apr 2021 11:43:55 +0300 (EEST) IronPort-SDR: jATLCd9sDSNevaZlwtv5l85/9UmJQMetBL4UtspSSBETdN98GxgkIuytZrzNjKKLNKOcvz90T2 dbkVllv+tQJA== X-IronPort-AV: E=McAfee;i="6000,8403,9946"; a="257247098" X-IronPort-AV: E=Sophos;i="5.82,203,1613462400"; d="scan'208";a="257247098" Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 07 Apr 2021 01:43:54 -0700 IronPort-SDR: Z1zf72jZeXABhQUqCdRn6mMgpn1ZlVRzfO8FYdf8WG1fuTik55JDXDNNt3qkrX+Qi4ebam+YWD /LJTt3aTeSeA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.82,203,1613462400"; d="scan'208";a="396578569" Received: from yguo18-skl-u1604.sh.intel.com ([10.239.159.53]) by orsmga002.jf.intel.com with ESMTP; 07 Apr 2021 01:43:51 -0700 From: "Guo, Yejun" To: ffmpeg-devel@ffmpeg.org Date: Wed, 7 Apr 2021 16:32:08 +0800 Message-Id: <20210407083208.2392-1-yejun.guo@intel.com> X-Mailer: git-send-email 2.17.1 Subject: [FFmpeg-devel] [PATCH] configure: remove -Werror=vla X-BeenThere: ffmpeg-devel@ffmpeg.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: FFmpeg development discussions and patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: FFmpeg development discussions and patches Cc: yejun.guo@intel.com MIME-Version: 1.0 Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" 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 Signed-off-by: Guo, Yejun --- 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