From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from us-smtp-delivery-1.mimecast.com (us-smtp-delivery-1.mimecast.com [207.211.31.81]) by mx.groups.io with SMTP id smtpd.web10.375.1583535891887224990 for ; Fri, 06 Mar 2020 15:04:52 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=bn8h8JDg; spf=pass (domain: redhat.com, ip: 207.211.31.81, mailfrom: lersek@redhat.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1583535891; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=5OcpY3A2CzkyP37gebE+l2MZuVNsSek4bc3O5RWo4/o=; b=bn8h8JDgWkiP8Xm7yeMTO9K+tzyB+8qOlhZK/ARLQAENCk3gedttulNDV5gNcBsSFT0yhZ f4rtZ/xn9Q9iuDAYoArwDr7JgdFbHxc2dtrNOOUzQL1qj5ycRuaD3YSh6gOqvJm/cZu+cd mTXkDXTixYVH6q+VeKQxEb4vC8FbRWs= 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-463-WX3lSpLbOd29N50EVz27nA-1; Fri, 06 Mar 2020 18:04:46 -0500 X-MC-Unique: WX3lSpLbOd29N50EVz27nA-1 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.phx2.redhat.com [10.5.11.22]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 4932F8017DF; Fri, 6 Mar 2020 23:04:45 +0000 (UTC) Received: from lacos-laptop-7.usersys.redhat.com (ovpn-117-130.ams2.redhat.com [10.36.117.130]) by smtp.corp.redhat.com (Postfix) with ESMTP id 180611001B2B; Fri, 6 Mar 2020 23:04:43 +0000 (UTC) From: "Laszlo Ersek" To: edk2-devel-groups-io Cc: Ard Biesheuvel , Jordan Justen , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= Subject: [PATCH] OvmfPkg/X86QemuLoadImageLib: fix "unused variable" error in X64 DXE builds Date: Sat, 7 Mar 2020 00:04:42 +0100 Message-Id: <20200306230442.24100-1-lersek@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.84 on 10.5.11.22 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: base64 V2hlbiB0aGUgTURFX0NQVV9JQTMyIG1hY3JvIGlzIG5vdCBkZWZpbmVkLCB0aGVyZSBpcyBubyBh Y2Nlc3MgdG8gdGhlCiJLZXJuZWxJbWFnZUhhbmRsZSIgbG9jYWwgdmFyaWFibGUgaW4gUWVtdVN0 YXJ0S2VybmVsSW1hZ2UoKS4gVGhpcyBicmVha3MKdGhlIE92bWZQa2dJYTMyWDY0IGFuZCBPdm1m UGtnWDY0IHBsYXRmb3JtIGJ1aWxkcywgYXQgbGVhc3Qgd2l0aCBnY2MtOC4KCk1vdmUgdGhlIGxv Y2FsIHZhcmlhYmxlIHRvIHRoZSBpbm5lciBzY29wZSwgd2hlcmUgZGVjbGFyYXRpb24gYW5kIHVz YWdlCmFyZSBpbnNlcGFyYWJsZS4KCihOb3RlIHRoYXQgc3VjaCBpbm5lci1zY29wZSBkZWNsYXJh dGlvbnMgYXJlIGZyb3duZWQgdXBvbiBpbiB0aGUgd2lkZXIKZWRrMiBjb2RlYmFzZSwgYnV0IHdl IHVzZSB0aGVtIGxpYmVyYWxseSBpbiBBcm1WaXJ0UGtnIGFuZCBPdm1mUGtnIGFueXdheSwKYmVj YXVzZSB0aGV5IGhlbHAgdXMgcmVhc29uIGFib3V0IHZhcmlhYmxlIGxpZmV0aW1lIGFuZCB2aXNp YmlsaXR5LikKCkNjOiBBcmQgQmllc2hldXZlbCA8YXJkLmJpZXNoZXV2ZWx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vTGlicmFyeS9YODZRZW11 TG9hZEltYWdlTGliL1g4NlFlbXVMb2FkSW1hZ2VMaWIuYwpAQCAtNDU3LDY3ICs0NTcsNjggQEAg RUZJQVBJCiBRZW11U3RhcnRLZXJuZWxJbWFnZSAoDQogICBJTiAgT1VUIEVGSV9IQU5ETEUgICAg ICAgICAgICAqSW1hZ2VIYW5kbGUNCiAgICkNCiB7DQogICBFRklfU1RBVFVTICAgICAgICAgICAg ICAgICAgICBTdGF0dXM7DQogICBPVk1GX0xPQURFRF9YODZfTElOVVhfS0VSTkVMICAqTG9hZGVk SW1hZ2U7DQotICBFRklfSEFORExFICAgICAgICAgICAgICAgICAgICBLZXJuZWxJbWFnZUhhbmRs ZTsNCiANCiAgIFN0YXR1cyA9IGdCUy0+T3BlblByb3RvY29sICgNCiAgICAgICAgICAgICAgICAg ICAqSW1hZ2VIYW5kbGUsDQogICAgICAgICAgICAgICAgICAgJmdPdm1mTG9hZGVkWDg2TGludXhL ZXJuZWxQcm90b2NvbEd1aWQsDQogICAgICAgICAgICAgICAgICAgKFZPSUQgKiopJkxvYWRlZElt YWdlLA0KICAgICAgICAgICAgICAgICAgIGdJbWFnZUhhbmRsZSwgICAgICAgICAgICAgICAgICAv LyBBZ2VudEhhbmRsZQ0KICAgICAgICAgICAgICAgICAgIE5VTEwsICAgICAgICAgICAgICAgICAg ICAgICAgICAvLyBDb250cm9sbGVySGFuZGxlDQogICAgICAgICAgICAgICAgICAgRUZJX09QRU5f UFJPVE9DT0xfR0VUX1BST1RPQ09MDQogICAgICAgICAgICAgICAgICAgKTsNCiAgIGlmICghRUZJ X0VSUk9SIChTdGF0dXMpKSB7DQogICAgIHJldHVybiBRZW11U3RhcnRMZWdhY3lJbWFnZSAoKklt YWdlSGFuZGxlKTsNCiAgIH0NCiANCiAgIFN0YXR1cyA9IGdCUy0+U3RhcnRJbWFnZSAoDQogICAg ICAgICAgICAgICAgICAgKkltYWdlSGFuZGxlLA0KICAgICAgICAgICAgICAgICAgIE5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