From 12764d531acb00d7e22f74685372ebcba2d9ad71 Mon Sep 17 00:00:00 2001 From: Graham Percival Date: Fri, 9 Aug 2024 18:21:18 -0700 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; } }