From nobody Thu May 16 21:01:21 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 170.10.133.124 as permitted sender) client-ip=170.10.133.124; envelope-from=libvir-list-bounces@redhat.com; helo=us-smtp-delivery-124.mimecast.com; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 170.10.133.124 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1622112371; cv=none; d=zohomail.com; s=zohoarc; b=fP0/BTVG9Rgzvw8EVcld36LMCI2zNSFzw+v6ckP4C1ygoJVI2RnQhyRUlcA7ioEAgshsR7ZfwmUPIc/IG1jtNe+xV1N/fMXFZzDqWYmZniLNwrXQfex1UBCJCvLvjQscl+yVUcKJzsuuQDhmYs/voOjQi3P9c55qEYiqpfIVTZQ= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1622112371; h=Content-Type:Content-Transfer-Encoding:Date:From:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:To; bh=RHWWxL04avtcRDG341dvWT38U+iAtCATgHc1vSqzhJk=; b=OBJGfgv3zZC9L0roqYgX2aJ00mpPUdkldMA/xe0MTV8vB5ddjVdfM2zkBKGtQO3E0FhDP9p4AI+sywRVtYqwwx29hFGxgPEW/S9qtsa0OpoaBJcs7mltSEpcoVDoZCKLUC+HWBlzZMmcfqftvsHQTaFuFug5LhuLkonWL4vJoJ8= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 170.10.133.124 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass header.from= (p=none dis=none) header.from= Return-Path: Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by mx.zohomail.com with SMTPS id 1622112371103865.0836056147883; Thu, 27 May 2021 03:46:11 -0700 (PDT) Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-206-3J8A7kv_PYa76sQKpMKKEQ-1; Thu, 27 May 2021 06:46:07 -0400 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 26E60501E1; Thu, 27 May 2021 10:46:03 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.21]) by smtp.corp.redhat.com (Postfix) with ESMTPS id D5A671349A; Thu, 27 May 2021 10:46:02 +0000 (UTC) Received: from lists01.pubmisc.prod.ext.phx2.redhat.com (lists01.pubmisc.prod.ext.phx2.redhat.com [10.5.19.33]) by colo-mx.corp.redhat.com (Postfix) with ESMTP id 5821D55351; Thu, 27 May 2021 10:46:02 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.13]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id 14RAk1kp009081 for ; Thu, 27 May 2021 06:46:01 -0400 Received: by smtp.corp.redhat.com (Postfix) id 0025660864; Thu, 27 May 2021 10:46:01 +0000 (UTC) Received: from thuth.com (ovpn-112-76.ams2.redhat.com [10.36.112.76]) by smtp.corp.redhat.com (Postfix) with ESMTP id 6109F6EF41 for ; Thu, 27 May 2021 10:45:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1622112369; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=RHWWxL04avtcRDG341dvWT38U+iAtCATgHc1vSqzhJk=; b=P2Qn9CaOuX9+jl5kIYAxVYo9qYXxJyEIrY5rNj0e/NLWERi8/3zMHJGdcLV6gdJ6m4xSN4 DVdWc7lL/GHhYtbQSnar+3yH6lElCfGV424OvHzWoLCbPc2o7OH6eRoPR4IOcbjwihr/0b oRvVqzNt3DmUdub3WwEmgFe/dEFIWFI= X-MC-Unique: 3J8A7kv_PYa76sQKpMKKEQ-1 From: Thomas Huth To: libvir-list@redhat.com Subject: [PATCH] meson.build: Compile with -Walloca Date: Thu, 27 May 2021 12:45:54 +0200 Message-Id: <20210527104554.351489-1-thuth@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.13 X-loop: libvir-list@redhat.com X-BeenThere: libvir-list@redhat.com X-Mailman-Version: 2.1.12 Precedence: junk List-Id: Development discussions about the libvirt library & tools List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: libvir-list-bounces@redhat.com Errors-To: libvir-list-bounces@redhat.com X-Scanned-By: MIMEDefang 2.79 on 10.5.11.11 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=libvir-list-bounces@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @redhat.com) Content-Type: text/plain; charset="utf-8" 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=C3=A1n Tomko --- meson.build | 1 + 1 file changed, 1 insertion(+) diff --git a/meson.build b/meson.build index 40c841e777..a97efdf8f4 100644 --- a/meson.build +++ b/meson.build @@ -234,6 +234,7 @@ cc_flags +=3D [ '-Waddress-of-packed-member', '-Waggressive-loop-optimizations', '-Walloc-size-larger-than=3D@0@'.format(alloc_max.stdout().strip()), + '-Walloca', '-Warray-bounds=3D2', '-Wattribute-alias=3D2', '-Wattribute-warning', --=20 2.27.0