Skip to content

Commit

Permalink
Perftest: Fix cpp checker warnings
Browse files Browse the repository at this point in the history
This commit fix cpp checker warning that caused
due to the prevent arguments duplications fix.

Signed-off-by: Shmuel Shaul <sshaul@nvidia.com>
  • Loading branch information
sshaulnv authored and HassanKhadour committed Mar 14, 2023
1 parent b60afcc commit a496715
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/perftest_parameters.c
Original file line number Diff line number Diff line change
Expand Up @@ -2393,7 +2393,7 @@ int parser(struct perftest_parameters *user_param,char *argv[], int argc)
/* c == 0: the argumenet is a long option (example: --report_gbits) */
/* c > 0: the argument is a short option (example: -s/--size) */
if (c == 0) {
if (duplicates_checker[long_option_index] && c != '?') {
if (duplicates_checker[long_option_index]) {
fprintf(stderr," Duplicated argument: %s \n", long_options[long_option_index].name);
free(duplicates_checker);
return FAILURE;
Expand Down

0 comments on commit a496715

Please sign in to comment.