From nobody Sat Feb 7 09:29:21 2026 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=1672936329; cv=none; d=zohomail.com; s=zohoarc; b=EfqC7Mqov/NDQyhsL6Y/65RbATa2obSflW8EUFncbGRQhSnkw1k9THbdY+GCy4XeLVHBAZKoA8uuRaOJhSuMbbO1UVsZrTcaM0u1c7RWGbXbGhA6u7EAoL5mtdqim0tHTLkfxPlH1H5NOjv5qpMlv3ybEzg6v/HKu1k6Zru2Ih4= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1672936329; 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=b/IPUFUbrBoXc56jUENPXF01sI7MHXl8tGuH4pyzQv4=; b=axaN/hmY64+3J0G0vGT7W++Gv/LLYnsryogwrZzk5Wi3S6MaweSU19rUsmLMqpy+sd1NKrteJMDPpxi5nnADyJJjmLOIobyr7etZchrb7Brr7x1cqcji6QU47iR173fHT+TY4JP/I6036spx7ELY7EvqarlEQV7Zhy7nn5vq1uM= 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) 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 1672936329771879.2719813028361; Thu, 5 Jan 2023 08:32:09 -0800 (PST) Received: from mimecast-mx02.redhat.com (mx3-rdu2.redhat.com [66.187.233.73]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-372-B6TQAynEPRGIxy2KH8cnxQ-1; Thu, 05 Jan 2023 11:30:54 -0500 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.rdu2.redhat.com [10.11.54.7]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 07755381495F; Thu, 5 Jan 2023 16:30:45 +0000 (UTC) Received: from mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (unknown [10.30.29.100]) by smtp.corp.redhat.com (Postfix) with ESMTP id E4ECA140EBF6; Thu, 5 Jan 2023 16:30:44 +0000 (UTC) Received: from mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (localhost [IPv6:::1]) by mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (Postfix) with ESMTP id DB542194658C; Thu, 5 Jan 2023 16:30:44 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.rdu2.redhat.com [10.11.54.6]) by mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (Postfix) with ESMTP id A08D4194704B for ; Thu, 5 Jan 2023 16:30:43 +0000 (UTC) Received: by smtp.corp.redhat.com (Postfix) id 7A40D2166B33; Thu, 5 Jan 2023 16:30:43 +0000 (UTC) Received: from speedmetal.redhat.com (ovpn-208-20.brq.redhat.com [10.40.208.20]) by smtp.corp.redhat.com (Postfix) with ESMTP id E79932166B30 for ; Thu, 5 Jan 2023 16:30:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1672936328; 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=b/IPUFUbrBoXc56jUENPXF01sI7MHXl8tGuH4pyzQv4=; b=EjKFdFRtXxu8rrNg3XOW8jRgokHxAq/1c8BRaN3p/nlvlL7TG8Zm/b/+ljXw8hSbg4yoNW yoS5nAt1p4j8iU8VfZGd3ecU5C3Vz+hquaOiuLZH5hN/mlplEdZZZClpFwFscWbNAFQgrI U1+ZOjbS4JbKWQBsgNpVnHu3SV8kwfk= X-MC-Unique: B6TQAynEPRGIxy2KH8cnxQ-1 X-Original-To: libvir-list@listman.corp.redhat.com From: Peter Krempa To: libvir-list@redhat.com Subject: [PATCH 14/36] gendispatch: Add 'G_GNUC_WARN_UNUSED_RESULT' to output of 'aclheader' Date: Thu, 5 Jan 2023 17:30:03 +0100 Message-Id: In-Reply-To: References: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.1 on 10.11.54.6 X-BeenThere: libvir-list@redhat.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: Development discussions about the libvirt library & tools List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: libvir-list-bounces@redhat.com Sender: "libvir-list" X-Scanned-By: MIMEDefang 3.1 on 10.11.54.7 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @redhat.com) X-ZM-MESSAGEID: 1672936330878100001 Content-Type: text/plain; charset="utf-8" Require check of return value of the ACL checking functions. Signed-off-by: Peter Krempa Reviewed-by: Pavel Hrdina --- src/rpc/gendispatch.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rpc/gendispatch.pl b/src/rpc/gendispatch.pl index 5f2b163ea0..54d55d91e7 100755 --- a/src/rpc/gendispatch.pl +++ b/src/rpc/gendispatch.pl @@ -2182,7 +2182,7 @@ elsif ($mode eq "client") { } if ($mode eq "aclheader") { - print "extern $ret $apiname(" . join(", ", @argdecls) . ")= ;\n"; + print "extern $ret $apiname(" . join(", ", @argdecls) . ")= G_GNUC_WARN_UNUSED_RESULT;\n"; } else { my @argvars; push @argvars, "mgr"; --=20 2.38.1