From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 833F246191; Tue, 4 Feb 2025 21:59:22 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 8F04940A72; Tue, 4 Feb 2025 21:57:48 +0100 (CET) Received: from linux.microsoft.com (linux.microsoft.com [13.77.154.182]) by mails.dpdk.org (Postfix) with ESMTP id A167E402E7 for ; Tue, 4 Feb 2025 21:57:23 +0100 (CET) Received: by linux.microsoft.com (Postfix, from userid 1213) id 46C95210D0D0; Tue, 4 Feb 2025 12:57:21 -0800 (PST) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com 46C95210D0D0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1738702642; bh=aU95CxSQ32eGwxTs9PzkQr4sApQZ2NfhPJCOkkqcfpg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=EwDhSwBcT7J6WO43A2GJO5wi6pRZ6cRLGKE7y9NEl4MJlC1TENGVkyyW7xFYMSMkw SeFLdJUbIhnjN5klwkEpizOe4cvmtTryoe/YUwGoZpzfZ9X1hXqy46VGEqzKPzzT4W uCLAXJLuHHu5obJg8wjYCn+YJRD4InjfdfpGFwtU= From: Andre Muezerie To: dev@dpdk.org Cc: konstantin.ananyev@huawei.com, thomas@monjalon.net, david.marchand@redhat.com, Andre Muezerie Subject: [PATCH v21 27/27] config: add -Wvla project-wide Date: Tue, 4 Feb 2025 12:57:18 -0800 Message-Id: <1738702638-22363-28-git-send-email-andremue@linux.microsoft.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1738702638-22363-1-git-send-email-andremue@linux.microsoft.com> References: <1713397319-26135-1-git-send-email-roretzla@linux.microsoft.com> <1738702638-22363-1-git-send-email-andremue@linux.microsoft.com> X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Add -Wvla project-wide so that VLAs are not allowed by default. This is to avoid new VLAs from being introduced. Meson files in directories which are not yet VLA-free have already been updated with -Wno-vla to avoid build breaks. Signed-off-by: Andre Muezerie --- config/meson.build | 1 + 1 file changed, 1 insertion(+) diff --git a/config/meson.build b/config/meson.build index a251ce49b1..710206095b 100644 --- a/config/meson.build +++ b/config/meson.build @@ -345,6 +345,7 @@ endif no_wvla_cflag = [] if cc.has_argument('-Wvla') + add_project_arguments('-Wvla', language: 'c') if not is_windows no_wvla_cflag = '-Wno-vla' endif -- 2.47.2.vfs.0.1