Re: [OE-core] [PATCH] ovmf: backport a fix for build with gcc-16

Mathieu Dubois-Briand
2026-04-13T06:09:09Z

On Sun Apr 12, 2026 at 11:36 AM CEST, Martin Jansa via lists.openembedded.org wrote:
> From: Martin Jansa <martin.jansa@gmail.com>
>
> Fixes build on host with gcc-16:
>
> StringFuncs.c: In function ‘SplitStringByWhitespace’:
> StringFuncs.c:113:15: error: variable ‘Item’ set but not used [-Werror=unused-but-set-variable=]
> 113 | UINTN Item;
> | ^~~~
>
> and
>
> EfiRom.c: In function ‘main’:
> EfiRom.c:78:17: error: assignment discards ‘const’ qualifier from pointer target type [-Werror=discarded-qualifiers]
> 78 | if ((Ptr0 = strstr ((CONST CHAR8 *) mOptions.FileList->FileName, DEFAULT_OUTPUT_EXTENSION)) != NULL) {
> | ^
>
> Signed-off-by: Martin Jansa <martin.jansa@gmail.com>
> ---

Hi Martin,

Thanks for your patch, but we already got a similar series. Can you
review it and comment if you feel something is missing?

https://lists.openembedded.org/g/openembedded-core/message/234912

Thanks,
Mathieu

--
Mathieu Dubois-Briand, Bootlin
Embedded Linux and Kernel engineering