public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
* [PATCH v2 1/1] Basetools: fix gcc workaround
@ 2022-03-29  8:37 Gerd Hoffmann
  2022-03-31  0:51 ` Yuwei Chen
       [not found] ` <16E150E28AFDD2A7.22795@groups.io>
  0 siblings, 2 replies; 5+ messages in thread
From: Gerd Hoffmann @ 2022-03-29  8:37 UTC (permalink / raw)
  To: devel
  Cc: Bob Feng, Rebecca Cran, Pawel Polawski, Oliver Steffen,
	Yuwei Chen, Liming Gao, Gerd Hoffmann

Apply the workaround only in case the compiler is gcc.
Fixes builds with clang.

Fixes: 22130dcd98b4 ("Basetools: turn off gcc12 warning")
Reported-by: Rebecca Cran <rebecca@bsdio.com>
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
---
 BaseTools/Source/C/DevicePath/GNUmakefile | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/BaseTools/Source/C/DevicePath/GNUmakefile b/BaseTools/Source/C/DevicePath/GNUmakefile
index b05d2bddfa68..6323e7355cc8 100644
--- a/BaseTools/Source/C/DevicePath/GNUmakefile
+++ b/BaseTools/Source/C/DevicePath/GNUmakefile
@@ -13,8 +13,10 @@ OBJECTS = DevicePath.o UefiDevicePathLib.o DevicePathFromText.o  DevicePathUtili
 
 include $(MAKEROOT)/Makefiles/app.makefile
 
+ifneq ($(CXX), llvm)
 # gcc 12 trips over device path handling
 BUILD_CFLAGS += -Wno-error=stringop-overflow
+endif
 
 LIBS = -lCommon
 ifeq ($(CYGWIN), CYGWIN)
-- 
2.35.1


^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2022-04-02  5:56 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-03-29  8:37 [PATCH v2 1/1] Basetools: fix gcc workaround Gerd Hoffmann
2022-03-31  0:51 ` Yuwei Chen
     [not found] ` <16E150E28AFDD2A7.22795@groups.io>
2022-03-31  2:46   ` [edk2-devel] " Yuwei Chen
2022-03-31  5:33     ` 回复: " gaoliming
2022-04-02  5:56       ` Yuwei Chen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox