Skip to content

Commit

Permalink
validation: crypto: make test compile if new op types are added
Browse files Browse the repository at this point in the history
Add a default case in a switch statement looking at crypto op types.
This avoids a compilation failure due to -Wswitch and -Werror if a new
crypto operation type is added in ODP API.

Signed-off-by: Janne Peltonen <janne.peltonen@nokia.com>
Reviewed-by: Petri Savolainen <petri.savolainen@nokia.com>
  • Loading branch information
JannePeltonen authored and MatiasElo committed Oct 20, 2023
1 parent de17bdb commit 88bab54
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions test/validation/api/crypto/odp_crypto_test_inp.c
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,9 @@ static void print_alg_test_param(const crypto_op_test_param_t *p)
case ODP_CRYPTO_OP_TYPE_OOP:
printf("out-of-place ");
break;
default:
printf("unknown (internal error) ");
break;
}
printf("%s\n", p->session.op == ODP_CRYPTO_OP_ENCODE ? "encode" : "decode");

Expand Down

0 comments on commit 88bab54

Please sign in to comment.