From mboxrd@z Thu Jan 1 00:00:00 1970 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.web08.33141.1649064771067451679 for ; Mon, 04 Apr 2022 02:32:51 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=gcgt5UvP; spf=pass (domain: redhat.com, ip: 170.10.133.124, mailfrom: kraxel@redhat.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1649064770; 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: in-reply-to:in-reply-to:references:references; bh=ZSYNzRC8V4CVQxcDUu8LY4ee2aqrh729eEBqVmlRhQU=; b=gcgt5UvPFYT0AiYx7Wforajwj016gixSDVSCxxSQob1Gx8sFuSNwn8xt48aFQU5JqaPO5s TTEBc5cakcA0D6x+saSEzWhGq3aAzbb0ERzjeyuyCPrvuReIpHHLPsgoCVNL5RsJdtTjMN MYcsfMrFRkttPQTmOqmXHVWyF2NyFl8= 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-576-eWOBpYaBP6WT23ar7lXoyA-1; Mon, 04 Apr 2022 05:32:49 -0400 X-MC-Unique: eWOBpYaBP6WT23ar7lXoyA-1 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 CCA25811E75; Mon, 4 Apr 2022 09:32:48 +0000 (UTC) Received: from sirius.home.kraxel.org (unknown [10.39.194.10]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 6FCAD4EA6E; Mon, 4 Apr 2022 09:32:45 +0000 (UTC) Received: by sirius.home.kraxel.org (Postfix, from userid 1000) id 04B921800631; Mon, 4 Apr 2022 11:32:30 +0200 (CEST) From: "Gerd Hoffmann" To: devel@edk2.groups.io Cc: Yuwei Chen , Liming Gao , Pawel Polawski , Bob Feng , Oliver Steffen , Rebecca Cran , Gerd Hoffmann Subject: [PATCH v3 3/3] BaseTools: fix gcc workaround Date: Mon, 4 Apr 2022 11:32:29 +0200 Message-Id: <20220404093229.1971782-4-kraxel@redhat.com> In-Reply-To: <20220404093229.1971782-1-kraxel@redhat.com> References: <20220404093229.1971782-1-kraxel@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.11.54.5 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=kraxel@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII"; x-default=true Check whenever the compiler used knows the warning we want disable. Fixes: 22130dcd98b4 ("Basetools: turn off gcc12 warning") Reported-by: Rebecca Cran Signed-off-by: Gerd Hoffmann --- BaseTools/Source/C/DevicePath/GNUmakefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/BaseTools/Source/C/DevicePath/GNUmakefile b/BaseTools/Source/C/DevicePath/GNUmakefile index b05d2bddfa68..1cc966c4831f 100644 --- a/BaseTools/Source/C/DevicePath/GNUmakefile +++ b/BaseTools/Source/C/DevicePath/GNUmakefile @@ -12,9 +12,10 @@ APPNAME = DevicePath OBJECTS = DevicePath.o UefiDevicePathLib.o DevicePathFromText.o DevicePathUtilities.o include $(MAKEROOT)/Makefiles/app.makefile +include $(MAKEROOT)/Makefiles/compiler.makefile # gcc 12 trips over device path handling -BUILD_CFLAGS += -Wno-error=stringop-overflow +BUILD_CFLAGS += $(call cc-disable-warning,stringop-overflow) LIBS = -lCommon ifeq ($(CYGWIN), CYGWIN) -- 2.35.1