提交 77305338 编写于 作者: R Rich Salz

Add -Wno-parentheses-equality to dev-warnings.

Also fix a block comment formatting glitch.
Reviewed-by: NTim Hudson <tjh@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/2327)
上级 f1adb006
...@@ -103,18 +103,19 @@ my $usage="Usage: Configure [no-<cipher> ...] [enable-<cipher> ...] [-Dxxx] [-lx ...@@ -103,18 +103,19 @@ my $usage="Usage: Configure [no-<cipher> ...] [enable-<cipher> ...] [-Dxxx] [-lx
# past these. # past these.
# DEBUG_UNUSED enables __owur (warn unused result) checks. # DEBUG_UNUSED enables __owur (warn unused result) checks.
# -DPEDANTIC complements -pedantic and is meant to mask code that
# is not strictly standard-compliant and/or implementation-specific,
# e.g. inline assembly, disregards to alignment requirements, such
# that -pedantic would complain about. Incidentally -DPEDANTIC has
# to be used even in sanitized builds, because sanitizer too is
# supposed to and does take notice of non-standard behaviour. Then
# -pedantic with pre-C9x compiler would also complain about 'long
# long' not being supported. As 64-bit algorithms are common now,
# it grew impossible to resolve this without sizeable additional
# code, so we just tell compiler to be pedantic about everything
# but 'long long' type.
my $gcc_devteam_warn = "-DDEBUG_UNUSED" my $gcc_devteam_warn = "-DDEBUG_UNUSED"
# -DPEDANTIC complements -pedantic and is meant to mask code that
# is not strictly standard-compliant and/or implementation-specific,
# e.g. inline assembly, disregards to alignment requirements, such
# that -pedantic would complain about. Incidentally -DPEDANTIC has
# to be used even in sanitized builds, because sanitizer too is
# supposed to and does take notice of non-standard behaviour. Then
# -pedantic with pre-C9x compiler would also complain about 'long
# long' not being supported. As 64-bit algorithms are common now,
# it grew impossible to resolve this without sizeable additional
# code, so we just tell compiler to be pedantic about everything
# but 'long long' type.
. " -Wswitch" . " -Wswitch"
. " -DPEDANTIC -pedantic -Wno-long-long" . " -DPEDANTIC -pedantic -Wno-long-long"
. " -Wall" . " -Wall"
...@@ -123,6 +124,7 @@ my $gcc_devteam_warn = "-DDEBUG_UNUSED" ...@@ -123,6 +124,7 @@ my $gcc_devteam_warn = "-DDEBUG_UNUSED"
. " -Wshadow" . " -Wshadow"
. " -Wformat" . " -Wformat"
. " -Wtype-limits" . " -Wtype-limits"
. " -Wno-parentheses-equality"
. " -Werror" . " -Werror"
; ;
...@@ -130,7 +132,7 @@ my $gcc_devteam_warn = "-DDEBUG_UNUSED" ...@@ -130,7 +132,7 @@ my $gcc_devteam_warn = "-DDEBUG_UNUSED"
# TODO(openssl-team): fix problems and investigate if (at least) the # TODO(openssl-team): fix problems and investigate if (at least) the
# following warnings can also be enabled: # following warnings can also be enabled:
# -Wcast-align # -Wcast-align
# -Wunreachable-code # -Wunreachable-code -- no, too ugly/compiler-specific
# -Wlanguage-extension-token -- no, we use asm() # -Wlanguage-extension-token -- no, we use asm()
# -Wunused-macros -- no, too tricky for BN and _XOPEN_SOURCE etc # -Wunused-macros -- no, too tricky for BN and _XOPEN_SOURCE etc
# -Wextended-offsetof -- no, needed in CMS ASN1 code # -Wextended-offsetof -- no, needed in CMS ASN1 code
...@@ -139,6 +141,7 @@ my $clang_devteam_warn = "" ...@@ -139,6 +141,7 @@ my $clang_devteam_warn = ""
. " -Wextra" . " -Wextra"
. " -Wswitch -Wswitch-default" . " -Wswitch -Wswitch-default"
. " -Wno-unused-parameter" . " -Wno-unused-parameter"
. " -Wno-parentheses-equality"
. " -Wno-missing-field-initializers" . " -Wno-missing-field-initializers"
. " -Wno-language-extension-token" . " -Wno-language-extension-token"
. " -Wno-extended-offsetof" . " -Wno-extended-offsetof"
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册