From 35fd6b0563f2ba554050f23e9f6e09e1e36a0310 Mon Sep 17 00:00:00 2001 From: Graham Percival Date: Sun, 22 Dec 2024 19:12:58 -0800 Subject: [PATCH] scryptenc_print_error.c: add a "default" for safety We should never reach that "default", but that doesn't mean that it'll never happen. --- lib/scryptenc/scryptenc_print_error.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/scryptenc/scryptenc_print_error.c b/lib/scryptenc/scryptenc_print_error.c index 2a3b5899..16d52cec 100644 --- a/lib/scryptenc/scryptenc_print_error.c +++ b/lib/scryptenc/scryptenc_print_error.c @@ -70,5 +70,8 @@ scryptenc_print_error(int rc, const char * infilename, case SCRYPT_EPARAM: warn0("Error in explicit parameters"); break; + default: + warn0("Programmer error: unrecognized scrypt error"); + break; } }