From 605dd576ee8f3421ad57eba6ea2290beba0ef103 Mon Sep 17 00:00:00 2001 From: "W. Felix Handte" Date: Fri, 16 Nov 2018 16:44:41 -0800 Subject: [PATCH] Remove Error Strings with ZSTD_STRIP_ERROR_STRINGS --- lib/common/error_private.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/common/error_private.c b/lib/common/error_private.c index d39e1a7a..692e66b2 100644 --- a/lib/common/error_private.c +++ b/lib/common/error_private.c @@ -14,6 +14,9 @@ const char* ERR_getErrorString(ERR_enum code) { +#ifdef ZSTD_STRIP_ERROR_STRINGS + return "Error strings stripped"; +#else static const char* const notErrorCode = "Unspecified error code"; switch( code ) { @@ -46,4 +49,5 @@ const char* ERR_getErrorString(ERR_enum code) case PREFIX(maxCode): default: return notErrorCode; } +#endif }