[PATCH 1/1] scripts/dtc: avoid discarded qualifiers in overlay_fixup_phandle
Tom Rini
trini at konsulko.com
Sat Apr 18 21:09:21 CEST 2026
On Sat, Apr 18, 2026 at 08:15:10PM +0200, Heinrich Schuchardt wrote:
> When building with GCC 15.2 the following warning show up:
>
> scripts/dtc/libfdt/fdt_overlay.c:422:21: warning:
> assignment discards ‘const’ qualifier from pointer target type
> [-Wdiscarded-qualifiers]
> 422 | sep = memchr(fixup_str, ':', fixup_len);
> | ^
> scripts/dtc/libfdt/fdt_overlay.c:432:21: warning:
> assignment discards ‘const’ qualifier from pointer target type
> [-Wdiscarded-qualifiers]
> 432 | sep = memchr(name, ':', fixup_len);
> | ^
>
> Define sep as const char *.
>
> Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt at canonical.com>
> ---
> scripts/dtc/libfdt/fdt_overlay.c | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
Is this something already fixed in upstream dtc?
--
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 228 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20260418/fba82bbf/attachment.sig>
More information about the U-Boot
mailing list