Skip to contentSkip to conversation

arm/gn: disable uninitialized variable warning

PATCH Applied Jon Mason 2 participants 3 messages Aug 20, 2025 – Aug 22, 2025

lore
Share & tools
lore

Jon Mason

author
#0 lore raw

PATCH 1/2 arm/gn: disable uninitialized variable warning

An uninitialized variable warning is occurring when compiling gn. However, since Wall is being used in gn, this is being logged as an error. Pass the no-error flag for this case to workaround this issue.

---
 meta-arm/recipes-devtools/gn/gn_git.bb | 1 +
 1 file changed, 1 insertion(+)
meta-arm/recipes-devtools/gn/gn_git.bb +1 -0
index d4294bd36aa1..8573cd2ffbd9 100644
@@ -43,3 +43,4 @@ do_install() {
 BBCLASSEXTEND = "native"
 
 COMPATIBLE_HOST = "^(?!riscv32).*"
+CFLAGS += "-Wno-error=maybe-uninitialized"
Signature · 1 line
2.39.5 (Apple Git-154)
author
#1 lore raw

PATCH 2/2 arm/gn: update to the latest SHA

Update gn to the latest SHA (commit from 08 Aug 2025). There are 66 commits between the previous SHA and the new one.

---
 meta-arm/recipes-devtools/gn/gn_git.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta-arm/recipes-devtools/gn/gn_git.bb +1 -1
index 8573cd2ffbd9..abc81a9549fd 100644
@@ -7,7 +7,7 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=0fca02217a5d49a14dfe2d11837bb34d"
 UPSTREAM_CHECK_COMMITS = "1"
 
 SRC_URI = "git://gn.googlesource.com/gn;protocol=https;branch=main"
-SRCREV = "ab638bd7cbb9ac8468bf2fbe60c74ed4706a14a7"
+SRCREV = "4ce861fc06ec87ff74eb6a17ebbd55e4755ebdeb"
 PV = "0+git"
 
 B = "${WORKDIR}/build"
Signature · 1 line
2.39.5 (Apple Git-154)
Applied
#2 lore raw
In reply to Jon Mason
Quoted 5 lines · Jon Mason

An uninitialized variable warning is occurring when compiling gn. However, since Wall is being used in gn, this is being logged as an error. Pass the no-error flag for this case to workaround this issue.

Applied, thanks!

[1/2] arm/gn: disable uninitialized variable warning

      commit: d8f0ab517b8bfe47a9e6d011711013877413cc4e
[2/2] arm/gn: update to the latest SHA
      commit: 6ec4a039a35c9f0947b82873b577b8a148473242

Best regards,

Signature · 1 line
Jon Mason <[email protected]>