From nobody Thu May 2 04:23:52 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 216.205.24.124 as permitted sender) client-ip=216.205.24.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 216.205.24.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=1622819518; cv=none; d=zohomail.com; s=zohoarc; b=Qr5JZNwRnsaMOh50/vw9jKczxeYg+ERpwVqXwb3Fz6yYWUutgEwfqSg+rN6pDJh8GPCzumK5PnJ2ZBNv2QJPoJ1wfmshqICpXai9x+49DG1t/+Y+BI68CAQXccLL1mJA1YlrRZkUj8DO7XSse4i2ItjafiX2a24njBNa9oqIDdE= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1622819518; 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=iwZ5ZNB+WGnW2yAZORyAJ125AOlqt5F1hbYOX8sLen4=; b=nZJio3Yw7sKnqwwHA7/i6JyWTAoV6r3lVWwXx1Zc6UasS01G7OyxDfbTvniJ+qKJKzG8CnY7DN303kiOKRY2+2LZi8/IgaiM4b/ee/kcxlqF3TWxsAwB45eof1AWLXmi3J/RZtgZNenTqRJ8S9Pz+DcrRMu04ybQaMhl95ybE1s= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 216.205.24.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 [216.205.24.124]) by mx.zohomail.com with SMTPS id 1622819518450725.3172803740584; Fri, 4 Jun 2021 08:11:58 -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-451-LjbEBGzvOxiBQhN4_JVZMg-1; Fri, 04 Jun 2021 11:11:54 -0400 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.phx2.redhat.com [10.5.11.16]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 0F85719253C3; Fri, 4 Jun 2021 15:11:47 +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 9E7815C239; Fri, 4 Jun 2021 15:11:46 +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 763FA44A58; Fri, 4 Jun 2021 15:11:45 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.phx2.redhat.com [10.5.11.22]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id 154F7SkF005764 for ; Fri, 4 Jun 2021 11:07:28 -0400 Received: by smtp.corp.redhat.com (Postfix) id 83F7E10023AC; Fri, 4 Jun 2021 15:07:28 +0000 (UTC) Received: from localhost.localdomain.com (ovpn-114-239.ams2.redhat.com [10.36.114.239]) by smtp.corp.redhat.com (Postfix) with ESMTP id C7577100164A; Fri, 4 Jun 2021 15:07:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1622819517; 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=iwZ5ZNB+WGnW2yAZORyAJ125AOlqt5F1hbYOX8sLen4=; b=EAah9T1GcAYk409PFjpTqfMwbdB4lu2/Ma573ycuI54pImfj013fH5XpL5iIt7qzrEYcxb qGubDAZmHkzNxAAqYjUK6SRKrx/jRI1NwfTWiQwEKJMoh4dPMJfotIrD1Qyy1enuSIJroE 30NTGlk2qDpIkNHOcmAy+Db3I4NFlME= X-MC-Unique: LjbEBGzvOxiBQhN4_JVZMg-1 From: =?UTF-8?q?Daniel=20P=2E=20Berrang=C3=A9?= To: libvir-list@redhat.com Subject: [PATCH] remote: remove/annotate unused variables Date: Fri, 4 Jun 2021 16:07:25 +0100 Message-Id: <20210604150725.156835-1-berrange@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.84 on 10.5.11.22 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.16 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-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @redhat.com) Fixes commit 48f66cfe3ee51baf64f06f1f89dda52af6f4d9d6 Fixes commit fcdcf8f70cf5d6657086e2889124d0e1a7332a29 Signed-off-by: Daniel P. Berrang=C3=A9 --- src/remote/remote_driver.c | 3 --- src/rpc/virnetsocket.c | 2 +- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/src/remote/remote_driver.c b/src/remote/remote_driver.c index da672b0d00..c03c68ec30 100644 --- a/src/remote/remote_driver.c +++ b/src/remote/remote_driver.c @@ -729,9 +729,6 @@ doRemoteOpen(virConnectPtr conn, virConf *conf, unsigned int flags) { -#ifndef WIN32 - g_autofree char *daemonPath =3D NULL; -#endif g_autofree char *tls_priority =3D NULL; g_autofree char *name =3D NULL; g_autofree char *command =3D NULL; diff --git a/src/rpc/virnetsocket.c b/src/rpc/virnetsocket.c index c3fae8b626..212089520d 100644 --- a/src/rpc/virnetsocket.c +++ b/src/rpc/virnetsocket.c @@ -774,7 +774,7 @@ int virNetSocketNewConnectUNIX(const char *path, } #else int virNetSocketNewConnectUNIX(const char *path G_GNUC_UNUSED, - const char *spawnDaemonPath, + const char *spawnDaemonPath G_GNUC_UNUSED, virNetSocket **retsock G_GNUC_UNUSED) { virReportSystemError(ENOSYS, "%s", --=20 2.31.1