]> git.ipfire.org Git - thirdparty/u-boot.git/commit
tools/atmelimage: add const qualifier to fix compiler warning
authorDaniel Golle <daniel@makrotopia.org>
Fri, 27 Feb 2026 01:50:46 +0000 (01:50 +0000)
committerTom Rini <trini@konsulko.com>
Wed, 4 Mar 2026 20:25:18 +0000 (14:25 -0600)
commit35d9b9c70ea4998aebc723273dca123dd1c3953f
tree3fe7e8e618355b546dc0da78a42ecd04c7119641
parent024a0e912569fcde6faf690b02895dff84ddd15d
tools/atmelimage: add const qualifier to fix compiler warning

More strict checks in GCC 15 expose a new warning:
tools/atmelimage.c: In function ‘atmel_find_pmecc_parameter_in_token’:
tools/atmelimage.c:64:31: error: assignment discards ‘const’ qualifier from pointer target type [-Werror=discarded-qualifiers]
64 |                         param = strstr(token, "=");
   |                               ^
cc1: all warnings being treated as errors

Add 'const' qualifier to variable 'param' to prevent build failing
due to -Werror.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
tools/atmelimage.c