From nobody Mon May 6 13:57:07 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 170.10.129.124 as permitted sender) client-ip=170.10.129.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.129.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=1666611876; cv=none; d=zohomail.com; s=zohoarc; b=ITfOqZt+uu2XN3n9UfTNJBes/alD0BoiOFuqJmJjLGypKq5mYP3z+uZiBPpe79u2bnEsKopPY1yn1ENyVLFqOHM92+PldjG9UehgzD8lEM20DVmkymgIArrSG3xxRzha/2sPZLNWeQvDos/g4wzJceDnxN+K4XSgGT3yzo+2sng= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1666611876; 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=UR/F/P4bXy/+mmikiXQ58uEdR+zqjUuoMwFuJdJlqsc=; b=KUKduQvlBrvcNlFCJSYkWGKFDMAxEXrw3wSYg3g1xVvG2TX/i2iujJfDMIIxV+Sia9QR9lWgsowZV05IZRHZPAxxKoEXoYyRFxR2Byv1nKv8KRAKy5xU5hHPyBHC+zGt0AjlLDUoG1X8MvE8ep/Z1Hsvmo7k5X4wOkXLNYVh5fc= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 170.10.129.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.129.124]) by mx.zohomail.com with SMTPS id 1666611876048483.8573808878326; Mon, 24 Oct 2022 04:44:36 -0700 (PDT) Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-615-5SvuryCMOPmcx43ZO-4GMA-1; Mon, 24 Oct 2022 07:44:31 -0400 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.rdu2.redhat.com [10.11.54.5]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 8592A82DFCB; Mon, 24 Oct 2022 11:44:27 +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 B361B42238; Mon, 24 Oct 2022 11:44:01 +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 5CAC8194658F; Mon, 24 Oct 2022 11:43:59 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.rdu2.redhat.com [10.11.54.5]) by mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (Postfix) with ESMTP id 11172194658D for ; Mon, 24 Oct 2022 11:43:44 +0000 (UTC) Received: by smtp.corp.redhat.com (Postfix) id E325A42238; Mon, 24 Oct 2022 11:43:43 +0000 (UTC) Received: from speedmetal.lan (ovpn-208-27.brq.redhat.com [10.40.208.27]) by smtp.corp.redhat.com (Postfix) with ESMTP id 6093342222 for ; Mon, 24 Oct 2022 11:43:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1666611875; 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=UR/F/P4bXy/+mmikiXQ58uEdR+zqjUuoMwFuJdJlqsc=; b=KQQFJmARW0KRC3ZIeSr3hETpX8BwjEw9/iXrPPXO24DTXG+0mdv113v/hIonGOUDSSErfL O14VPMzYYwO/QvPFQ/6z3lW454z9XbHhfKjQoFspz7703gHwMpvTcEGKC//j8FSI7ZNDjk W3nNaZQtaVc/UdqyweqMUcd3Jt/aM0I= X-MC-Unique: 5SvuryCMOPmcx43ZO-4GMA-1 X-Original-To: libvir-list@listman.corp.redhat.com From: Peter Krempa To: libvir-list@redhat.com Subject: [PATCH] vircgroup: Remove unused variables in virCgroupV2Available Date: Mon, 24 Oct 2022 13:43:41 +0200 Message-Id: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.1 on 10.11.54.5 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.5 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: 1666611877089100001 Content-Type: text/plain; charset="utf-8" After recent commit 'contFile' and 'contStr' became unused breaking build with clang: ../../../libvirt/src/util/vircgroupv2.c:72:26: error: unused variable 'cont= File' [-Werror,-Wunused-variable] g_autofree char *contFile =3D NULL; ^ ../../../libvirt/src/util/vircgroupv2.c:73:26: error: unused variable 'cont= Str' [-Werror,-Wunused-variable] g_autofree char *contStr =3D NULL; ^ Fixes: a0f37232b9c4296ca16955cc625f75eb848ace39 Signed-off-by: Peter Krempa --- src/util/vircgroupv2.c | 3 --- 1 file changed, 3 deletions(-) Pushed as a build fix. diff --git a/src/util/vircgroupv2.c b/src/util/vircgroupv2.c index 0e0c61d466..bf6bd11fef 100644 --- a/src/util/vircgroupv2.c +++ b/src/util/vircgroupv2.c @@ -69,9 +69,6 @@ virCgroupV2Available(void) return false; while (getmntent_r(mounts, &entry, buf, sizeof(buf)) !=3D NULL) { - g_autofree char *contFile =3D NULL; - g_autofree char *contStr =3D NULL; - if (STRNEQ(entry.mnt_type, "cgroup2")) continue; --=20 2.37.3