Closed diabonas closed 6 years ago
Oops, unfortunately the second commit does not seem to have had the desired effect. I will investigate other options to achieve a successful build with clang (it is quite difficult to test this as I do not have Travis available locally).
So it turns out that for clang, -Wno-missing-field-initializers
needs to be specified after -Wextra
, otherwise the former option gets overwritten again. I have fixed the second commit so that tpm2-tools can now be built successfully with clang.
In its current state, the pull request successfully fixes the build environment. Note that the build still fails as the current tpm2-pk11 code base does not compile with tpm2-tss and tpm2-abrmd 2.0. To fix this and have a successful CI build, https://github.com/irtimmer/tpm2-pk11/pull/79 needs to be applied in addition to this pull request.
Currently, there are two problems with the continuous integration that are fixed by this pull request:
-Werror
. The second commit disables this warning for the tpm2-tools build. A better solution would be to update clang to a more recent version that does not show this warning any more, but that seems to be more difficult with Travis.