From: Milan Broz Date: Wed, 14 Jan 2026 12:48:40 +0000 (+0100) Subject: Fix type-limits and add this warning to default strict warnings X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8bf30b21bda96462658d84fa44af2d55237550fc;p=thirdparty%2Fopenssl.git Fix type-limits and add this warning to default strict warnings One mistake recently introduced in commit b6aed64e47b. Fixes: https://github.com/openssl/project/issues/1815 Signed-off-by: Milan Broz Reviewed-by: Paul Dale Reviewed-by: Nikola Pajkovsky Reviewed-by: Neil Horman MergeDate: Tue Jan 20 18:44:58 2026 (Merged from https://github.com/openssl/openssl/pull/29662) --- diff --git a/Configure b/Configure index 173096816b..28c7b05c23 100755 --- a/Configure +++ b/Configure @@ -175,7 +175,7 @@ my @gcc_devteam_warn = qw( -Wsign-compare -Wshadow -Wformat - -Wno-type-limits + -Wtype-limits -Wundef -Werror -Wmissing-prototypes diff --git a/crypto/evp/encode.c b/crypto/evp/encode.c index 49b02ed4dd..ec6fa03284 100644 --- a/crypto/evp/encode.c +++ b/crypto/evp/encode.c @@ -451,7 +451,7 @@ int EVP_EncodeUpdate(EVP_ENCODE_CTX *ctx, unsigned char *out, int *outl, void EVP_EncodeFinal(EVP_ENCODE_CTX *ctx, unsigned char *out, int *outl) { - unsigned int ret = 0; + int ret = 0; int wrap_cnt = 0; if (ctx->num != 0) {