From nobody Sun Feb 8 14:31:10 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 63.128.21.124 as permitted sender) client-ip=63.128.21.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 63.128.21.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=1596473886; cv=none; d=zohomail.com; s=zohoarc; b=jAcMmOV6VeDpefW7WB1Y5vubBEONCAskobq1TVLo5DatBrq4HTHr4tUl4qkW+tB8ZnKqyWiXsrtn97UXD3dk1+HI33H9qrnJphYJg2mFw3Ju8fI8+HGHTEZKa1rhyTmbw5ffQcHUIT6c8gc+KhHETzhUZAH9xpfPizJPm0NoJN0= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1596473886; h=Content-Type:Content-Transfer-Encoding:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=3B91+bIuJE84ET3mP5IZWvUd49XtZoovqdTOrT22CBA=; b=YcgNYbvBpo8U77nmcpPTRIA39jFNWy0wonVnvzs0qqruKIc3y3PGnmk4gLDu9oDXkEDKRZlvi4lvBeZyjD7jQacPMyUhtl9xP2hZy2NEBZy8ZTCJqHdzHx6Km1ASCGRLpF3dhl+/oN9KVAtepi6bGLfhW8hesMeXKGECoy3m7MY= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 63.128.21.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 [63.128.21.124]) by mx.zohomail.com with SMTPS id 1596473886946732.1656227279019; Mon, 3 Aug 2020 09:58:06 -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-486-jYLyBaa5NeGu2uhHWECssQ-1; Mon, 03 Aug 2020 12:57:41 -0400 Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id D4D46107BEF8; Mon, 3 Aug 2020 16:57:34 +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 B0D8060BF4; Mon, 3 Aug 2020 16:57:34 +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 824C39A103; Mon, 3 Aug 2020 16:57:34 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id 073GvWPf007876 for ; Mon, 3 Aug 2020 12:57:32 -0400 Received: by smtp.corp.redhat.com (Postfix) id E9E6771778; Mon, 3 Aug 2020 16:57:32 +0000 (UTC) Received: from lpt.redhat.com (unknown [10.40.208.14]) by smtp.corp.redhat.com (Postfix) with ESMTP id 3080071775 for ; Mon, 3 Aug 2020 16:57:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1596473885; 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: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=3B91+bIuJE84ET3mP5IZWvUd49XtZoovqdTOrT22CBA=; b=W3j7WP6c9TYAWssEsramk7e0Y52zqyQdZe12ocQblyliaopxnrXMUJFsHG5T3x4KhMp/Ih 7a4DQMSMqMcLCKqKz3/2f/WfB0npwPQ6tVRGA/094koQADcZwMHcOBF9kMxWyMIKM2qQVp Ff8AyRlclibjax0/dJAD4jAxXnmUTpg= X-MC-Unique: jYLyBaa5NeGu2uhHWECssQ-1 From: =?UTF-8?q?J=C3=A1n=20Tomko?= To: libvir-list@redhat.com Subject: [libvirt PATCH RFC 17/19] src: internal: add VIR_WARNINGS_NO_DECLARATION_AFTER_STATEMENT Date: Mon, 3 Aug 2020 18:56:54 +0200 Message-Id: <6736a109aa419c1293f34f5f46ab365bac0fd6fc.1596473604.git.jtomko@redhat.com> In-Reply-To: References: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.15 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.12 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @redhat.com) Add a macro to suppress the warning. Signed-off-by: J=C3=A1n Tomko --- src/internal.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/internal.h b/src/internal.h index 3aa3c6ca67..d95db330b3 100644 --- a/src/internal.h +++ b/src/internal.h @@ -194,6 +194,10 @@ _Pragma ("GCC diagnostic push") \ _Pragma ("GCC diagnostic ignored \"-Wunused-variable\"") =20 +#define VIR_WARNINGS_NO_DECLARATION_AFTER_STATEMENT \ + _Pragma ("GCC diagnostic push") \ + _Pragma ("GCC diagnostic ignored \"-Wdeclaration-after-statement\"") + #define VIR_WARNINGS_RESET \ _Pragma ("GCC diagnostic pop") =20 --=20 2.26.2