From nobody Sun May 5 11:59:24 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 207.211.31.120 as permitted sender) client-ip=207.211.31.120; envelope-from=libvir-list-bounces@redhat.com; helo=us-smtp-1.mimecast.com; Authentication-Results: mx.zohomail.com; spf=pass (zohomail.com: domain of redhat.com designates 207.211.31.120 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=1599211649; cv=none; d=zohomail.com; s=zohoarc; b=J1zsqb8qzFiOxYLkZHa8942hVN+AA4elN7KWQ/BjxNcM6kR2IcBhJaoADqcAr5eK1UBI4eVEvwMnaFqCArwuwUc/q4K5qgZEJNAKtsUR9wXyCWK3y/ksbYumjTIoxgmL3nBHUatUkR2X7fJ7rsto0e1qkiCTBTWTiJJZVaz0jts= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1599211649; 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=kEHy68YU360wSFulCRnxCXV4SrjyMG64IseGPpLkU+8=; b=Nem9ynqFTwaxNKylpYZLWS62c6mgLRat01tL9qLu8fQtEToMwCFSIELN8EgtqO0NuCXYpBcpDvJG79hiiJrQqmluu1cEeOzHh+IQzxGYF9xugVYEWciuUUS37amPFtFsgrmLDkcEBwY85tJ3ET7lid5b0hCcYWz74TDT2oNwga8= ARC-Authentication-Results: i=1; mx.zohomail.com; spf=pass (zohomail.com: domain of redhat.com designates 207.211.31.120 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-1.mimecast.com (us-smtp-delivery-1.mimecast.com [207.211.31.120]) by mx.zohomail.com with SMTPS id 1599211649846959.9220133654874; Fri, 4 Sep 2020 02:27:29 -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-271-_5OTpSsLOFqqwNf3nW7BlA-1; Fri, 04 Sep 2020 05:27:27 -0400 Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.23]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 8AF5B393B4; Fri, 4 Sep 2020 09:27:21 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.20]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 2418A171CB; Fri, 4 Sep 2020 09:27:20 +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 86ADD1832FC2; Fri, 4 Sep 2020 09:27:17 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.phx2.redhat.com [10.5.11.16]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id 0849RGT6006334 for ; Fri, 4 Sep 2020 05:27:16 -0400 Received: by smtp.corp.redhat.com (Postfix) id 805C35C22B; Fri, 4 Sep 2020 09:27:16 +0000 (UTC) Received: from localhost.localdomain.com (ovpn-114-5.ams2.redhat.com [10.36.114.5]) by smtp.corp.redhat.com (Postfix) with ESMTP id B433A5C1DA; Fri, 4 Sep 2020 09:27:12 +0000 (UTC) X-MC-Unique: _5OTpSsLOFqqwNf3nW7BlA-1 From: =?UTF-8?q?Daniel=20P=2E=20Berrang=C3=A9?= To: libvir-list@redhat.com Subject: [PATCH] tools: avoid unused parameter warning when readline is disabled Date: Fri, 4 Sep 2020 10:27:05 +0100 Message-Id: <20200904092705.730565-1-berrange@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.16 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.84 on 10.5.11.23 X-Mimecast-Spam-Score: 0.002 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable The vshReadlineHistoryAdd stub method does not use its parameter. Signed-off-by: Daniel P. Berrang=C3=A9 --- Pushed to fix minimal build used by layered repo CI tools/vsh.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/vsh.c b/tools/vsh.c index ef2a3f62d7..0e8edcd78c 100644 --- a/tools/vsh.c +++ b/tools/vsh.c @@ -2971,7 +2971,7 @@ vshReadline(vshControl *ctl G_GNUC_UNUSED, } =20 void -vshReadlineHistoryAdd(const char *cmd) +vshReadlineHistoryAdd(const char *cmd G_GNUC_UNUSED) { /* empty */ } --=20 2.26.2