On 14/01/2026 11:25, Ales Musil via dev wrote:
> The GCC with -fno-omit-frame-pointer -fno-common started to report
> the following warning:
> 
> In function 'construct_dpdk_mutex_options',
>     inlined from 'construct_dpdk_args' at lib/dpdk.c:238:5,
>     inlined from 'dpdk_init__' at lib/dpdk.c:393:5,
>     inlined from 'dpdk_init' at lib/dpdk.c:534:23:
> lib/dpdk.c:220:13: error: 'found_value' may be used uninitialized 
> [-Werror=maybe-uninitialized]
>   220 |             svec_add(args, found_value);
>       |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~
> lib/dpdk.c: In function 'dpdk_init':
> lib/dpdk.c:189:21: note: 'found_value' was declared here
>   189 |         const char *found_value;
>       |                     ^~~~~~~~~~~
> cc1: all warnings being treated as errors
> 
> Assign NULL to the variable to avoid this warning.
> 
> Signed-off-by: Ales Musil <[email protected]>
> ---
>  lib/dpdk.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)

Updated the commit area (dpdk:), fixed a typo (uninitialized) and added
-O1 to the commit message, as per below:

"
dpdk: Avoid maybe uninitialized for found_value variable.

The GCC with -O1 -fno-omit-frame-pointer -fno-common started to report
the following warning:
"

I pushed to main and backported as far as branch-3.3. Thanks Ales!

_______________________________________________
dev mailing list
[email protected]
https://mail.openvswitch.org/mailman/listinfo/ovs-dev

Reply via email to