]> git.ipfire.org Git - thirdparty/openssl.git/commitdiff
Add disabled-optimization and pointer-arith to compiler warnings
authorMilan Broz <gmazyland@gmail.com>
Tue, 13 Jan 2026 13:16:11 +0000 (14:16 +0100)
committerAlexandr Nedvedicky <sashan@openssl.org>
Thu, 15 Jan 2026 16:16:24 +0000 (17:16 +0100)
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 <gmazyland@gmail.com>
Reviewed-by: Eugene Syromiatnikov <esyr@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Paul Dale <paul.dale@oracle.com>
Reviewed-by: Norbert Pocs <norbertp@openssl.org>
Reviewed-by: Saša Nedvědický <sashan@openssl.org>
MergeDate: Thu Jan 15 16:16:40 2026
(Merged from https://github.com/openssl/openssl/pull/29622)

Configure

index 6d7068d876a854578caad7186a144029acc2852d..3b8f2e458740cc12cb8d7435d49f7ed0b80ac0f6 100755 (executable)
--- 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.