Commit 8bf30b21bd for openssl.org
commit 8bf30b21bda96462658d84fa44af2d55237550fc
Author: Milan Broz <gmazyland@gmail.com>
Date: Wed Jan 14 13:48:40 2026 +0100
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 <gmazyland@gmail.com>
Reviewed-by: Paul Dale <paul.dale@oracle.com>
Reviewed-by: Nikola Pajkovsky <nikolap@openssl.org>
Reviewed-by: Neil Horman <nhorman@openssl.org>
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) {