From: Vitaly Chikunov Date: Tue, 8 Feb 2022 08:31:54 +0000 (+0300) Subject: Fix gcc12 -fanalyzer warning X-Git-Tag: v3.0.1~5 X-Git-Url: http://wagner.pp.ru/gitweb/?a=commitdiff_plain;h=4c531340c8ca3cff32e8c8790e1caf5ef7dd5dbe;p=openssl-gost%2Fengine.git 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 --- 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. */