From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail05.groups.io (mail05.groups.io [45.79.224.7]) by spool.mail.gandi.net (Postfix) with ESMTPS id 8A8E9780091 for ; Tue, 28 May 2024 14:57:33 +0000 (UTC) DKIM-Signature: a=rsa-sha256; bh=szptUW19Ak6r368ITMk+Dc7TjJ1RDQUGXXyd+xoJ03Q=; c=relaxed/simple; d=groups.io; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Precedence:List-Subscribe:List-Help:Sender:List-Id:Mailing-List:Delivered-To:Resent-Date:Resent-From:Reply-To:List-Unsubscribe-Post:List-Unsubscribe:Content-Type:Content-Transfer-Encoding; s=20240206; t=1716908253; v=1; b=yqpBrsdPQ35TABztLcvwPYoVTEiDdoPRBR+OWbdsqaNlw0svBAcU4CQnlDfunRxIifBMeA82 rqXb5HkIFkXyvBSmx3E+pjFVUQxzEqFYnQuyM0Fhub6u1m5LB73sOTaup2gCF+YuwBmbSMGgCKO Zn7UDLV88Hd3E43y9bxKIn/OndgARyGCoa7FZeLJT/ZZBISMYZDER/gy+01V6gkilSRba3Rkj/a JPEdVttp1TYQ1HMNxQGDEwMGEbtJyl+ngyGwIcU9CcIiOsl78Vgsk6OjF8f6bo0XfZtfSI7GEa2 DDysE0gzO+q7brO2tzHelwSy65gocFryOlXZ8JBrZHnPQ== X-Received: by 127.0.0.2 with SMTP id UtcaYY7687511xPa3vuMd1q7; Tue, 28 May 2024 07:57:31 -0700 X-Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by mx.groups.io with SMTP id smtpd.web10.24203.1716908251317690799 for ; Tue, 28 May 2024 07:57:31 -0700 X-Received: from mimecast-mx02.redhat.com (mx-ext.redhat.com [66.187.233.73]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-157-OSC9bEI3MXKMlqMPIb0a0A-1; Tue, 28 May 2024 10:57:29 -0400 X-MC-Unique: OSC9bEI3MXKMlqMPIb0a0A-1 X-Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.rdu2.redhat.com [10.11.54.5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 100A73C025B5; Tue, 28 May 2024 14:57:28 +0000 (UTC) X-Received: from sirius.home.kraxel.org (unknown [10.39.192.232]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 9EE5B2870; Tue, 28 May 2024 14:57:27 +0000 (UTC) X-Received: by sirius.home.kraxel.org (Postfix, from userid 1000) id B4C8F18009F4; Tue, 28 May 2024 16:57:26 +0200 (CEST) From: "Gerd Hoffmann" To: devel@edk2.groups.io Cc: Oliver Steffen , Gerd Hoffmann , Andrew Fish , Ray Ni Subject: [edk2-devel] [PATCH 1/1] EmulatorPkg: fix build error. Date: Tue, 28 May 2024 16:57:26 +0200 Message-ID: <20240528145726.1027519-1-kraxel@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.4.1 on 10.11.54.5 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Precedence: Bulk List-Subscribe: List-Help: Sender: devel@edk2.groups.io List-Id: Mailing-List: list devel@edk2.groups.io; contact devel+owner@edk2.groups.io Resent-Date: Tue, 28 May 2024 07:57:31 -0700 Resent-From: kraxel@redhat.com Reply-To: devel@edk2.groups.io,kraxel@redhat.com List-Unsubscribe-Post: List-Unsubscribe=One-Click List-Unsubscribe: X-Gm-Message-State: mpX0nzyaciocvQ5NNMxytQJgx7686176AA= Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-GND-Status: LEGIT Authentication-Results: spool.mail.gandi.net; dkim=pass header.d=groups.io header.s=20240206 header.b=yqpBrsdP; dmarc=fail reason="SPF not aligned (relaxed), DKIM not aligned (relaxed)" header.from=redhat.com (policy=none); spf=pass (spool.mail.gandi.net: domain of bounce@groups.io designates 45.79.224.7 as permitted sender) smtp.mailfrom=bounce@groups.io GasketSecSetTime is EMU_SET_TIME and returns EFI_STATUS. Fix the declaration accordingly. Fixes build error with gcc 14. /home/kraxel/projects/edk2/EmulatorPkg/Unix/Host/EmuThunk.c:429:3: error: initialization of ‘EFI_STATUS (__attribute__((ms_abi)) *)(EFI_TIME *)’ {aka ‘long long unsigned int (__attribute__((ms_abi)) *)(EFI_TIME *)’} from incompatible pointer type ‘void (__attribute__((ms_abi)) *)(EFI_TIME *)’ [-Wincompatible-pointer-types] 429 | GasketSecSetTime, | ^~~~~~~~~~~~~~~~ Cc: Andrew Fish Cc: Ray Ni Signed-off-by: Gerd Hoffmann --- EmulatorPkg/Unix/Host/Gasket.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/EmulatorPkg/Unix/Host/Gasket.h b/EmulatorPkg/Unix/Host/Gasket.h index 6dafc903cfce..71b459ddd8c7 100644 --- a/EmulatorPkg/Unix/Host/Gasket.h +++ b/EmulatorPkg/Unix/Host/Gasket.h @@ -140,7 +140,7 @@ GasketSecGetTime ( OUT EFI_TIME_CAPABILITIES *Capabilities OPTIONAL ); -VOID +EFI_STATUS EFIAPI GasketSecSetTime ( IN EFI_TIME *Time -- 2.45.1 -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#119309): https://edk2.groups.io/g/devel/message/119309 Mute This Topic: https://groups.io/mt/106350150/7686176 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io] -=-=-=-=-=-=-=-=-=-=-=-