From: Milan Broz Date: Tue, 13 Jan 2026 13:16:11 +0000 (+0100) Subject: Add disabled-optimization and pointer-arith to compiler warnings X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f99eff7055764fe88f5e1eade5db946d9623d4a3;p=thirdparty%2Fopenssl.git Add disabled-optimization and pointer-arith to compiler warnings These flags seems not to be part of -Wextra, but looks like could be useful in CI. According to gcc man page: disabled-optimization Warn if a requested optimization pass is disabled. pointer-arith Warn about anything that depends on the "size of" a function type or of "void". Fixes: https://github.com/openssl/project/issues/1809 Signed-off-by: Milan Broz Reviewed-by: Eugene Syromiatnikov Reviewed-by: Tomas Mraz Reviewed-by: Paul Dale Reviewed-by: Norbert Pocs Reviewed-by: Saša Nedvědický MergeDate: Thu Jan 15 16:16:40 2026 (Merged from https://github.com/openssl/openssl/pull/29622) --- diff --git a/Configure b/Configure index 6d7068d876a..3b8f2e45874 100755 --- a/Configure +++ b/Configure @@ -181,6 +181,8 @@ my @gcc_devteam_warn = qw( -Werror -Wmissing-prototypes -Wstrict-prototypes + -Wdisabled-optimization + -Wpointer-arith ); # These are used in addition to $gcc_devteam_warn when the compiler is clang.