* cmd_process warning
@ 2022-08-01 11:58 Sergei Antonov
2022-08-01 13:19 ` Heinrich Schuchardt
0 siblings, 1 reply; 2+ messages in thread
From: Sergei Antonov @ 2022-08-01 11:58 UTC (permalink / raw)
To: u-boot, sjg
Hello!
There is an annoying warning about conflicting return types:
common/command.c:586:20: warning: conflicting types for 'cmd_process'
due to enum/integer mismatch; have 'enum command_ret_t(int, int,
char * const*, int *, ulong *)' {aka 'enum command_ret_t(int, int,
char * const*, int *, long unsigned int *)'} [-Wenum-int-mismatch]
In file included from common/command.c:13:
include/command.h:234:5: note: previous declaration of 'cmd_process'
with type 'int(int, int, char * const*, int *, long unsigned int *)'
It can be fixed by replacing 'int' with 'enum command_ret_t' in
include/command.h
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: cmd_process warning
2022-08-01 11:58 cmd_process warning Sergei Antonov
@ 2022-08-01 13:19 ` Heinrich Schuchardt
0 siblings, 0 replies; 2+ messages in thread
From: Heinrich Schuchardt @ 2022-08-01 13:19 UTC (permalink / raw)
To: Sergei Antonov, u-boot, sjg
On 8/1/22 13:58, Sergei Antonov wrote:
> Hello!
> There is an annoying warning about conflicting return types:
>
> common/command.c:586:20: warning: conflicting types for 'cmd_process'
> due to enum/integer mismatch; have 'enum command_ret_t(int, int,
> char * const*, int *, ulong *)' {aka 'enum command_ret_t(int, int,
> char * const*, int *, long unsigned int *)'} [-Wenum-int-mismatch]
> In file included from common/command.c:13:
> include/command.h:234:5: note: previous declaration of 'cmd_process'
> with type 'int(int, int, char * const*, int *, long unsigned int *)'
>
> It can be fixed by replacing 'int' with 'enum command_ret_t' in
> include/command.h
Thanks for reporting. Patch created:
[PATCH 1/1] cmd: inconsistent return type of command_process()
https://lists.denx.de/pipermail/u-boot/2022-August/490520.html
Best regards
Heinrich
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2022-08-01 13:19 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-08-01 11:58 cmd_process warning Sergei Antonov
2022-08-01 13:19 ` Heinrich Schuchardt
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.