From nobody Sat Nov 23 14:55:52 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) client-ip=192.237.175.120; envelope-from=xen-devel-bounces@lists.xenproject.org; helo=lists.xenproject.org; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org; dmarc=pass(p=none dis=none) header.from=linutronix.de ARC-Seal: i=1; a=rsa-sha256; t=1701193681; cv=none; d=zohomail.com; s=zohoarc; b=AO+t8C7u6HpaR9maitRp2Vx7xzCXp19YxG517fzwXFEsgJHcbOtTwpKlxTMeZGeIhjd559JuPKb81TDJPYvHKxTFLy4cQNeugGARNu837HQQIwCq667mXX09peLI2WIkISo/EN8+XYYjogSeehihePWoLUu2CLNdg2ReUyjnrlk= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1701193681; h=Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:List-Subscribe:List-Post:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=6Dj6Dm0GUWm0oD+U33Q4aBpJzv9FVypp509lLyxq/40=; b=SkTFTkS1afPofByPSACI5lJ6aNuACJ1QemLL9SMP3g05/lO1xU15gPb2nMMpyaoReL1Gs/FVDhhU13ua3AZtHw62OztkcpJhYU9J0epSS390fCzkHNil1dKT5bnNPa+t4KQ/pY2CKm/HzGJAP2yWvG7/7bg36leuQUv7L4wT0LU= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) by mx.zohomail.com with SMTPS id 17011936819113.7421242117002294; Tue, 28 Nov 2023 09:48:01 -0800 (PST) Received: from list by lists.xenproject.org with outflank-mailman.643411.1003599 (Exim 4.92) (envelope-from ) id 1r82BP-0000F3-Gz; Tue, 28 Nov 2023 17:47:39 +0000 Received: by outflank-mailman (output) from mailman id 643411.1003599; Tue, 28 Nov 2023 17:47:39 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1r82BP-0000Ew-EL; Tue, 28 Nov 2023 17:47:39 +0000 Received: by outflank-mailman (input) for mailman id 643411; Tue, 28 Nov 2023 17:47:38 +0000 Received: from se1-gles-sth1-in.inumbo.com ([159.253.27.254] helo=se1-gles-sth1.inumbo.com) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1r82BN-0000Eq-Vi for xen-devel@lists.xenproject.org; Tue, 28 Nov 2023 17:47:38 +0000 Received: from galois.linutronix.de (galois.linutronix.de [193.142.43.55]) by se1-gles-sth1.inumbo.com (Halon) with ESMTPS id 376fcf8c-8e16-11ee-98e3-6d05b1d4d9a1; Tue, 28 Nov 2023 18:47:36 +0100 (CET) X-Outflank-Mailman: Message body and most headers restored to incoming version X-BeenThere: xen-devel@lists.xenproject.org List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xenproject.org Precedence: list Sender: "Xen-devel" X-Inumbo-ID: 376fcf8c-8e16-11ee-98e3-6d05b1d4d9a1 From: Alexander Kanavin DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1701193655; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=6Dj6Dm0GUWm0oD+U33Q4aBpJzv9FVypp509lLyxq/40=; b=2fXB/nz7aYwbqNRddJ08Ts0Qevd0r93/MDQfUXaAL1pmbow0jv2oLvjeaAXnXTEhWjPHj2 58ZmdDR2Gj/ugcE+ChCaDwmxpa9dqUK6x2BFZVfl4jfyuRjMwrqvE4HUbXNvw8o/6kNubo f5Q4iqMJkZJUAwxDml9+UFyl+GhUhZNLRT3SgfcMhDEZweaJkGeiD1wDcqqQsAbzBkJOJq 2qcoJarGpw29sAO8ZQ8XaQpyDAlIKc26F5a2dW7OWMtebZch1fx42n3d4Q1IBca3yP4OXS Umpn4EpnxJ/t06st5/csURDoDG9feEyvcVHvcGqOlf4sUnKdN2q2FmYtK7sJjw== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1701193656; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=6Dj6Dm0GUWm0oD+U33Q4aBpJzv9FVypp509lLyxq/40=; b=ADeq3y6n6pKlMHe1V1yK+6nRMXVIotW04wwV+hbKFuvP1f9IEHqNMt4Zvg+FZqmUSg7RO0 Wl+c3UZtzfy6EBBQ== To: xen-devel@lists.xenproject.org Cc: Alexander Kanavin , Andrew Cooper , George Dunlap , Jan Beulich , Julien Grall , Stefano Stabellini , Wei Liu Subject: [PATCH] Config.mk: drop -Wdeclaration-after-statement Date: Tue, 28 Nov 2023 18:47:29 +0100 Message-Id: <20231128174729.3880113-1-alex@linutronix.de> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @linutronix.de) X-ZM-MESSAGEID: 1701193682787000001 Content-Type: text/plain; charset="utf-8" Such constructs are fully allowed by C99: https://gcc.gnu.org/onlinedocs/gcc-12.2.0/gcc/Mixed-Labels-and-Declarations= .html#Mixed-Labels-and-Declarations If the flag is present, then building against python 3.12 will fail thusly: | In file included from /srv/storage/alex/yocto/build-virt/tmp/work/core2-6= 4-poky-linux/xen-tools/4.17+stable/recipe-sysroot/usr/include/python3.12/Py= thon.h:44, | from xen/lowlevel/xc/xc.c:8: | /srv/storage/alex/yocto/build-virt/tmp/work/core2-64-poky-linux/xen-tools= /4.17+stable/recipe-sysroot/usr/include/python3.12/object.h: In function 'P= y_SIZE': | /srv/storage/alex/yocto/build-virt/tmp/work/core2-64-poky-linux/xen-tools= /4.17+stable/recipe-sysroot/usr/include/python3.12/object.h:233:5: error: I= SO C90 forbids mixed declarations and code [-Werror=3Ddeclaration-after-sta= tement] | 233 | PyVarObject *var_ob =3D _PyVarObject_CAST(ob); | | ^~~~~~~~~~~ | In file included from /srv/storage/alex/yocto/build-virt/tmp/work/core2-6= 4-poky-linux/xen-tools/4.17+stable/recipe-sysroot/usr/include/python3.12/Py= thon.h:53: | /srv/storage/alex/yocto/build-virt/tmp/work/core2-64-poky-linux/xen-tools= /4.17+stable/recipe-sysroot/usr/include/python3.12/cpython/longintrepr.h: I= n function '_PyLong_CompactValue': | /srv/storage/alex/yocto/build-virt/tmp/work/core2-64-poky-linux/xen-tools= /4.17+stable/recipe-sysroot/usr/include/python3.12/cpython/longintrepr.h:12= 1:5: error: ISO C90 forbids mixed declarations and code [-Werror=3Ddeclarat= ion-after-statement] | 121 | Py_ssize_t sign =3D 1 - (op->long_value.lv_tag & _PyLong_SIGN= _MASK); | | ^~~~~~~~~~ | cc1: all warnings being treated as errors Signed-off-by: Alexander Kanavin --- Config.mk | 2 -- 1 file changed, 2 deletions(-) diff --git a/Config.mk b/Config.mk index 2c43702958..7e67b91de2 100644 --- a/Config.mk +++ b/Config.mk @@ -177,8 +177,6 @@ CFLAGS +=3D -std=3Dgnu99 =20 CFLAGS +=3D -Wall -Wstrict-prototypes =20 -$(call cc-option-add,HOSTCFLAGS,HOSTCC,-Wdeclaration-after-statement) -$(call cc-option-add,CFLAGS,CC,-Wdeclaration-after-statement) $(call cc-option-add,CFLAGS,CC,-Wno-unused-but-set-variable) $(call cc-option-add,CFLAGS,CC,-Wno-unused-local-typedefs) =20 --=20 2.39.2