Although the elements of `help_aliases[]` are of type `const char *`, the elements themselves are not const-qualified. Make them `const`. Signed-off-by: Ian Abbott <abbotti@xxxxxxxxx> --- commands/help.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commands/help.c b/commands/help.c index 819c40653..34ffa9a41 100644 --- a/commands/help.c +++ b/commands/help.c @@ -139,7 +139,7 @@ BAREBOX_CMD_HELP_OPT ("-a", "output help on all commands") BAREBOX_CMD_HELP_OPT ("-v", "verbose") BAREBOX_CMD_HELP_END -static const char *help_aliases[] = { "?", NULL}; +static const char * const help_aliases[] = { "?", NULL}; BAREBOX_CMD_START(help) .cmd = do_help, -- 2.11.0 _______________________________________________ barebox mailing list barebox@xxxxxxxxxxxxxxxxxxx http://lists.infradead.org/mailman/listinfo/barebox