tpm2-software / tpm2-tss-engine

OpenSSL Engine for TPM2 devices
https://tpm2-software.github.io
BSD 3-Clause "New" or "Revised" License
150 stars 100 forks source link

build: only use -Werror for non-release builds #214

Closed diabonas closed 3 years ago

diabonas commented 3 years ago

While we want to catch any compiler warnings during development, a release build should never fail due to e.g. stricter static checks introduced by new compiler versions. Therefore make -Werror conditional on AX_IS_RELEASE, like e.g. tpm2-tss does.

tpm2-tss-engine has no issues with the recently released GCC 11 as far as I am aware, but it never hurts to be proactive.