mirror of
https://source.denx.de/u-boot/u-boot.git
synced 2026-06-02 09:46:37 +03:00
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>
This commit is contained in:
@@ -55,7 +55,7 @@ static const char * const configs[] = {
|
|||||||
static int atmel_find_pmecc_parameter_in_token(const char *token)
|
static int atmel_find_pmecc_parameter_in_token(const char *token)
|
||||||
{
|
{
|
||||||
size_t pos;
|
size_t pos;
|
||||||
char *param;
|
const char *param;
|
||||||
|
|
||||||
debug("token: '%s'\n", token);
|
debug("token: '%s'\n", token);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user