Message ID | 20250820165424.20345-1-jon.mason@arm.com |
---|---|
State | New |
Headers | show |
Series | [1/2] arm/gn: disable uninitialized variable warning | expand |
On Wed, 20 Aug 2025 12:54:23 -0400, Jon Mason wrote: > 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,
diff --git a/meta-arm/recipes-devtools/gn/gn_git.bb b/meta-arm/recipes-devtools/gn/gn_git.bb index d4294bd36aa1..8573cd2ffbd9 100644 --- a/meta-arm/recipes-devtools/gn/gn_git.bb +++ b/meta-arm/recipes-devtools/gn/gn_git.bb @@ -43,3 +43,4 @@ do_install() { BBCLASSEXTEND = "native" COMPATIBLE_HOST = "^(?!riscv32).*" +CFLAGS += "-Wno-error=maybe-uninitialized"
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. Signed-off-by: Jon Mason <jon.mason@arm.com> --- meta-arm/recipes-devtools/gn/gn_git.bb | 1 + 1 file changed, 1 insertion(+)