[07/10] test-pmd: don't return value from void function
Checks
Commit Message
Compiling with MSVC results in the warning below:
app/test-pmd/cmdline_flow.c(13964): warning C4098: 'cmd_set_raw_parsed':
'void' function returning a value
Signed-off-by: Andre Muezerie <andremue@linux.microsoft.com>
---
app/test-pmd/cmdline_flow.c | 12 ++++++++----
1 file changed, 8 insertions(+), 4 deletions(-)
Comments
Signed-off-by: Chengwen Feng <fengchengwen@huawei.com>
On 2025/2/12 6:02, Andre Muezerie wrote:
> Compiling with MSVC results in the warning below:
>
> app/test-pmd/cmdline_flow.c(13964): warning C4098: 'cmd_set_raw_parsed':
> 'void' function returning a value
>
> Signed-off-by: Andre Muezerie <andremue@linux.microsoft.com>
@@ -13952,11 +13952,15 @@ cmd_set_raw_parsed(const struct buffer *in)
int gtp_psc = -1; /* GTP PSC option index. */
const void *src_spec;
- if (in->command == SET_SAMPLE_ACTIONS)
- return cmd_set_raw_parsed_sample(in);
+ if (in->command == SET_SAMPLE_ACTIONS) {
+ cmd_set_raw_parsed_sample(in);
+ return;
+ }
else if (in->command == SET_IPV6_EXT_PUSH ||
- in->command == SET_IPV6_EXT_REMOVE)
- return cmd_set_ipv6_ext_parsed(in);
+ in->command == SET_IPV6_EXT_REMOVE) {
+ cmd_set_ipv6_ext_parsed(in);
+ return;
+ }
RTE_ASSERT(in->command == SET_RAW_ENCAP ||
in->command == SET_RAW_DECAP);
if (in->command == SET_RAW_ENCAP) {