From nobody Mon Feb 9 16:01:53 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) client-ip=66.175.222.108; envelope-from=bounce+27952+87986+1787277+3901457@groups.io; helo=mail02.groups.io; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce+27952+87986+1787277+3901457@groups.io; dmarc=fail(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1648123492; cv=none; d=zohomail.com; s=zohoarc; b=A1sCFGDxzV327kyg5+JN+ZcGuaplVLcpR830pVqA/cyX4yrTMsatoLEhSyr4MDRa3sX4Y8nRU13r55zrRMEXvEQsXmj7lSIxoUC8ynxL/VJx2V6j6x5BPhFJYlF3IDmxK6c/HZCmgJTmjSnMrvWCJXHJbklPiYirlyAJDRvBeko= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1648123492; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Reply-To:References:Sender:Subject:To; bh=Qm8rjC+aeJfGYheVnK+ODmlVhN5hybGBiCIgXviyeIQ=; b=iGv1Rj9do6xci3dMeFLJX2+lgGHBkQ7y2Q9JLJaiKJ16JYmHBqCFa1thoHzCRfwfbD6o2+hovLiwE5OejDOt99yUrTu5fLmTfK/SKM3EKBgR888Q8KDz+Exew+/gxl8/5//tTzC3dZ15WTJpiKNI775xNAcCovGgV4jlaCJSiXs= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce+27952+87986+1787277+3901457@groups.io; dmarc=fail header.from= (p=none dis=none) Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by mx.zohomail.com with SMTPS id 1648123492521103.65382826836299; Thu, 24 Mar 2022 05:04:52 -0700 (PDT) Return-Path: X-Received: by 127.0.0.2 with SMTP id yRiZYY1788612xjNT69UQFbf; Thu, 24 Mar 2022 05:04:52 -0700 X-Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by mx.groups.io with SMTP id smtpd.web11.9959.1648123491253231651 for ; Thu, 24 Mar 2022 05:04:51 -0700 X-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-88-0FCgn98oOyqZtumf1jS2nw-1; Thu, 24 Mar 2022 08:04:45 -0400 X-MC-Unique: 0FCgn98oOyqZtumf1jS2nw-1 X-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 9434185A5A8; Thu, 24 Mar 2022 12:04:44 +0000 (UTC) X-Received: from sirius.home.kraxel.org (unknown [10.39.196.67]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 0B1BC9E62; Thu, 24 Mar 2022 12:04:44 +0000 (UTC) X-Received: by sirius.home.kraxel.org (Postfix, from userid 1000) id 59CBF180061B; Thu, 24 Mar 2022 13:04:36 +0100 (CET) From: "Gerd Hoffmann" To: devel@edk2.groups.io Cc: Pawel Polawski , Liming Gao , Yuwei Chen , Oliver Steffen , Bob Feng , Gerd Hoffmann Subject: [edk2-devel] [PATCH 3/3] Basetools: turn off gcc12 warning Date: Thu, 24 Mar 2022 13:04:36 +0100 Message-Id: <20220324120436.939688-4-kraxel@redhat.com> In-Reply-To: <20220324120436.939688-1-kraxel@redhat.com> References: <20220324120436.939688-1-kraxel@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.11.54.5 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Precedence: Bulk List-Unsubscribe: List-Subscribe: List-Help: Sender: devel@edk2.groups.io List-Id: Mailing-List: list devel@edk2.groups.io; contact devel+owner@edk2.groups.io Reply-To: devel@edk2.groups.io,kraxel@redhat.com X-Gm-Message-State: NGcQExaysZEXNEeTLoKlqUBHx1787277AA= Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1648123492; bh=GDtQV1IkorKvXPuQuiWam5kMtn6UvDnNxn6h/1Lsevg=; h=Cc:Content-Type:Date:From:Reply-To:Subject:To; b=pRVTxfN1Aaw8PoK1UYJtVofAcY3YBcfe6qrVBXeEbeiLxZkr+hGF3jdNXHXMLyZhLiM wR4nBLZGeTf9OxbawCfYwuckrGg3s+upklIsuznYsFaIdGs0bufLwJ/h68T/3amTkcV6c v2Hc3ueZQo5+8sAt2/sYgkaVeZXu24ojqHE= X-ZohoMail-DKIM: pass (identity @groups.io) X-ZM-MESSAGEID: 1648123494614100002 In function =E2=80=98SetDevicePathEndNode=E2=80=99, inlined from =E2=80=98FileDevicePath=E2=80=99 at DevicePathUtilities.c:= 857:5: DevicePathUtilities.c:321:3: error: writing 4 bytes into a region of size 1= [-Werror=3Dstringop-overflow=3D] 321 | memcpy (Node, &mUefiDevicePathLibEndDevicePath, sizeof (mUefiDevi= cePathLibEndDevicePath)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~= ~~~~~~~~~~~~~~~~~~~~~~~~ In file included from UefiDevicePathLib.h:22, from DevicePathUtilities.c:16: ../Include/Protocol/DevicePath.h: In function =E2=80=98FileDevicePath=E2=80= =99: ../Include/Protocol/DevicePath.h:51:9: note: destination object =E2=80=98Ty= pe=E2=80=99 of size 1 51 | UINT8 Type; ///< 0x01 Hardware Device Path. | ^~~~ Signed-off-by: Gerd Hoffmann --- BaseTools/Source/C/DevicePath/GNUmakefile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/BaseTools/Source/C/DevicePath/GNUmakefile b/BaseTools/Source/C= /DevicePath/GNUmakefile index 7ca08af9662d..b05d2bddfa68 100644 --- a/BaseTools/Source/C/DevicePath/GNUmakefile +++ b/BaseTools/Source/C/DevicePath/GNUmakefile @@ -13,6 +13,9 @@ OBJECTS =3D DevicePath.o UefiDevicePathLib.o DevicePathFr= omText.o DevicePathUtili =20 include $(MAKEROOT)/Makefiles/app.makefile =20 +# gcc 12 trips over device path handling +BUILD_CFLAGS +=3D -Wno-error=3Dstringop-overflow + LIBS =3D -lCommon ifeq ($(CYGWIN), CYGWIN) LIBS +=3D -L/lib/e2fsprogs -luuid --=20 2.35.1 -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#87986): https://edk2.groups.io/g/devel/message/87986 Mute This Topic: https://groups.io/mt/89997416/1787277 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [importer@patchew.org] -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-