From 4c531340c8ca3cff32e8c8790e1caf5ef7dd5dbe Mon Sep 17 00:00:00 2001 From: Vitaly Chikunov Date: Tue, 8 Feb 2022 11:31:54 +0300 Subject: [PATCH] Fix gcc12 -fanalyzer warning GCC do not understand that `algname` cannot be NULL. Add dummy default case to cover all execution paths. Fixes https://github.com/gost-engine/engine/issues/389 Tested-by: Ilya Shipitsin Signed-off-by: Vitaly Chikunov --- test_sign.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/test_sign.c b/test_sign.c index 50b6643..63ae3b5 100644 --- a/test_sign.c +++ b/test_sign.c @@ -121,6 +121,9 @@ static int test_sign(struct test_sign *t) case 512: type = NID_id_GostR3410_2012_512; algname = "gost2012_512"; + break; + default: + return -1; } /* Keygen. */ -- 2.39.5