]> git.ipfire.org Git - thirdparty/openssl.git/commit
Configure: clang: add -Wno-unknown-warning-option
authorDr. Matthias St. Pierre <Matthias.St.Pierre@ncp-e.com>
Tue, 23 Jul 2019 18:18:43 +0000 (20:18 +0200)
committerDr. Matthias St. Pierre <Matthias.St.Pierre@ncp-e.com>
Sat, 7 Sep 2019 23:12:04 +0000 (01:12 +0200)
commit6a7bad0fd7a2125d075e459b33145d4ce5ee0de9
tree28c114121901e316f85a75baf438eb57f36050f4
parent920e37e3a7d6bb935dba446eb80cacb4c34e7488
Configure: clang: add -Wno-unknown-warning-option

Fixes travis build errors due to clang

    error: unknown warning option '-Wno-extended-offsetof'

It seems like '-Wextended-offsetof' was removed from clang in version 6.0.0,
(see [1], [2]). While gcc ignores unknown options of the type '-Wno-xxx',
clang by default issues a warning [-Wunknown-warning-option] (see [3]), which
together with '-Werror' causes the build to fail.

This commit adds the '-Wno-unknown-warning-option' option to make clang
behave more relaxed like gcc.

[1] https://reviews.llvm.org/D40267
[2] https://github.com/llvm/llvm-project/commit/52a3ca9e2909
[3] https://clang.llvm.org/docs/DiagnosticsReference.html#wunknown-warning-option

[extended tests]

Reviewed-by: Richard Levitte <levitte@openssl.org>
Reviewed-by: Bernd Edlinger <bernd.edlinger@hotmail.de>
(Merged from https://github.com/openssl/openssl/pull/9446)
Configure