[PATCH v4 2/4] argparse: fix minsize build
fengchengwen
fengchengwen at huawei.com
Thu Jan 29 02:35:35 CET 2026
Acked-by: Chengwen Feng <fengchengwen at huawei.com>
On 1/28/2026 7:58 PM, Thomas Monjalon wrote:
> This error is seen in build of type "minsize":
>
> In function 'parse_args', lib/argparse/rte_argparse.c:764:31: error:
> 'arg_idx' may be used uninitialized [-Werror=maybe-uninitialized]
> 764 | if (arg_parsed[arg_idx] && !arg_attr_flag_multi(arg)) {
> | ^
>
> It looks to be a compiler issue because we are not supposed
> to reach this point in case of find_option_arg() failure.
>
> The variable is initialized to allow compiling with "minsize" option.
>
> Signed-off-by: Thomas Monjalon <thomas at monjalon.net>
More information about the dev
mailing list