提交 560ad13c 编写于 作者: B Benjamin Kaduk 提交者: Rich Salz

Add -Wextra to gcc devteam warnings

clang already has it; let's flip the switch and deal with the fallout.
Exclude -Wunused-parameter, as we have many places where we keep unused
parameters to conform to a uniform vtable-like interface.
Also exclude -Wmissing-field-initializers; it's okay to rely on
the standard-mandated behavior of filling out with 0/NULL.
Reviewed-by: NAndy Polyakov <appro@openssl.org>
Reviewed-by: NRich Salz <rsalz@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/3239)
上级 1ff86c5e
...@@ -119,6 +119,9 @@ my $gcc_devteam_warn = "-DDEBUG_UNUSED" ...@@ -119,6 +119,9 @@ my $gcc_devteam_warn = "-DDEBUG_UNUSED"
. " -Wswitch" . " -Wswitch"
. " -DPEDANTIC -pedantic -Wno-long-long" . " -DPEDANTIC -pedantic -Wno-long-long"
. " -Wall" . " -Wall"
. " -Wextra"
. " -Wno-unused-parameter"
. " -Wno-missing-field-initializers"
. " -Wsign-compare" . " -Wsign-compare"
. " -Wmissing-prototypes" . " -Wmissing-prototypes"
. " -Wshadow" . " -Wshadow"
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册