From: W. Felix Handte Date: Sat, 17 Nov 2018 00:44:41 +0000 (-0800) Subject: Remove Error Strings with ZSTD_STRIP_ERROR_STRINGS X-Git-Tag: v1.3.8~13^2~15 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=605dd576ee8f3421ad57eba6ea2290beba0ef103;p=thirdparty%2Fzstd.git Remove Error Strings with ZSTD_STRIP_ERROR_STRINGS --- diff --git a/lib/common/error_private.c b/lib/common/error_private.c index d39e1a7ad..692e66b22 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 }