From 88bab54ee0cdec624755d60995dc5f65a54d5fe3 Mon Sep 17 00:00:00 2001 From: Janne Peltonen Date: Mon, 9 Oct 2023 09:50:11 +0300 Subject: [PATCH] validation: crypto: make test compile if new op types are added 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 Reviewed-by: Petri Savolainen --- test/validation/api/crypto/odp_crypto_test_inp.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/test/validation/api/crypto/odp_crypto_test_inp.c b/test/validation/api/crypto/odp_crypto_test_inp.c index 8da90c7504..c6fdc20df1 100644 --- a/test/validation/api/crypto/odp_crypto_test_inp.c +++ b/test/validation/api/crypto/odp_crypto_test_inp.c @@ -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");