Re: [PATCH v2 04/10] app/test: avoid duplicate initialization

2024-11-15 Thread Bruce Richardson
On Thu, Nov 14, 2024 at 11:25:02AM -0800, Stephen Hemminger wrote: > The event_dev_config initialization had duplicate assignments > to the same element. Change to use structure initialization > so that compiler will catch this type of bug. > > Link: https://pvs-studio.com/en/blog/posts/cpp/1179/

[PATCH v2 04/10] app/test: avoid duplicate initialization

2024-11-14 Thread Stephen Hemminger
The event_dev_config initialization had duplicate assignments to the same element. Change to use structure initialization so that compiler will catch this type of bug. Link: https://pvs-studio.com/en/blog/posts/cpp/1179/ Fixes: f8f9d233ea0e ("test/eventdev: add unit tests") Cc: jerin.ja...@cavium