In file included from include/Tss.h:8, from include/Tpm2.h:22, from Src/stdafx.h:32, from Src/TpmDevice.cpp:6: include/TpmTypes.h: In member function ‘bool TpmCpp::TPMS_PCR_SELECTION::PcrIsSelected(UINT32)’: include/TpmTypes.h:3656:35: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 3656 | return pcrSelect[pcr / 8] = (1 << (pcr % 8)) != 0; In file included from include/Tss.h:8, from include/Tpm2.h:22, from Src/stdafx.h:32, from Src/TpmTypeExtensions.cpp:6: include/TpmTypes.h: In member function ‘bool TpmCpp::TPMS_PCR_SELECTION::PcrIsSelected(UINT32)’: include/TpmTypes.h:3656:35: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 3656 | return pcrSelect[pcr / 8] = (1 << (pcr % 8)) != 0; In file included from include/Tss.h:8, from include/Tpm2.h:22, from Src/stdafx.h:32, from Src/TpmTypes.cpp:15: include/TpmTypes.h: In member function ‘bool TpmCpp::TPMS_PCR_SELECTION::PcrIsSelected(UINT32)’: include/TpmTypes.h:3656:35: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 3656 | return pcrSelect[pcr / 8] = (1 << (pcr % 8)) != 0; In file included from include/Tss.h:8, from include/Tpm2.h:22, from Src/stdafx.h:32, from Src/TpmPolicy.cpp:6: include/TpmTypes.h: In member function ‘bool TpmCpp::TPMS_PCR_SELECTION::PcrIsSelected(UINT32)’: include/TpmTypes.h:3656:35: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 3656 | return pcrSelect[pcr / 8] = (1 << (pcr % 8)) != 0; In file included from include/Tss.h:8, from include/Tpm2.h:22, from Src/stdafx.h:32, from Src/Tpm2.cpp:6: include/TpmTypes.h: In member function ‘bool TpmCpp::TPMS_PCR_SELECTION::PcrIsSelected(UINT32)’: include/TpmTypes.h:3656:35: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 3656 | return pcrSelect[pcr / 8] = (1 << (pcr % 8)) != 0; In file included from include/Tss.h:8, from include/Tpm2.h:22, from Src/stdafx.h:32, from Src/Serialize.cpp:6: include/TpmTypes.h: In member function ‘bool TpmCpp::TPMS_PCR_SELECTION::PcrIsSelected(UINT32)’: include/TpmTypes.h:3656:35: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 3656 | return pcrSelect[pcr / 8] = (1 << (pcr % 8)) != 0; In file included from include/Tss.h:8, from include/Tpm2.h:22, from Src/stdafx.h:32, from Src/stdafx.cpp:6: include/TpmTypes.h: In member function ‘bool TpmCpp::TPMS_PCR_SELECTION::PcrIsSelected(UINT32)’: include/TpmTypes.h:3656:35: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 3656 | return pcrSelect[pcr / 8] = (1 << (pcr % 8)) != 0; In file included from include/Tss.h:8, from include/Tpm2.h:22, from Src/stdafx.h:32, from Src/Crypto.cpp:6: include/TpmTypes.h: In member function ‘bool TpmCpp::TPMS_PCR_SELECTION::PcrIsSelected(UINT32)’: include/TpmTypes.h:3656:35: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 3656 | return pcrSelect[pcr / 8] = (1 << (pcr % 8)) != 0; Src/Crypto.cpp: In function ‘size_t TpmCpp::RsaEncrypt(const RSA_KEY*, TpmCpp::TPM_ALG_ID, TpmCpp::TPM_ALG_ID, UINT32, const BYTE*, UINT32, const BYTE*, UINT32*, BYTE*)’: Src/Crypto.cpp:363:9: warning: unused variable ‘wasNumBytes’ [-Wunused-variable] 363 | int wasNumBytes = (int) * outBufferSize; | ^~~~~~~~~~~ Src/Crypto.cpp: In static member function ‘static TpmCpp::SignResponse TpmCpp::Crypto::Sign(const TpmCpp::TSS_KEY&, const ByteVec&, const TpmCpp::TPMU_SIG_SCHEME&)’: Src/Crypto.cpp:522:9: warning: unused variable ‘res’ [-Wunused-variable] 522 | int res = RSA_sign(TpmAlgIdToNid(scheme->hashAlg), &toSign[0], (unsigned)toSign.size(), | ^~~ In file included from include/Tss.h:8, from include/Tpm2.h:22, from Src/stdafx.h:32, from Src/TpmAuthSessions.cpp:8: include/TpmTypes.h: In member function ‘bool TpmCpp::TPMS_PCR_SELECTION::PcrIsSelected(UINT32)’: include/TpmTypes.h:3656:35: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 3656 | return pcrSelect[pcr / 8] = (1 << (pcr % 8)) != 0; In file included from include/Tss.h:8, from include/Tpm2.h:22, from Src/stdafx.h:32, from Src/TpmStructure.cpp:6: include/TpmTypes.h: In member function ‘bool TpmCpp::TPMS_PCR_SELECTION::PcrIsSelected(UINT32)’: include/TpmTypes.h:3656:35: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 3656 | return pcrSelect[pcr / 8] = (1 << (pcr % 8)) != 0; In file included from include/Tss.h:8, from include/Tpm2.h:22, from Src/stdafx.h:32, from Src/TpmHelpers.cpp:6: include/TpmTypes.h: In member function ‘bool TpmCpp::TPMS_PCR_SELECTION::PcrIsSelected(UINT32)’: include/TpmTypes.h:3656:35: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 3656 | return pcrSelect[pcr / 8] = (1 << (pcr % 8)) != 0; In file included from include/Tss.h:8, from include/Tpm2.h:22, from Samples/stdafx.h:52, from Samples/DocSamples.cpp:6: include/TpmTypes.h: In member function ‘bool TpmCpp::TPMS_PCR_SELECTION::PcrIsSelected(UINT32)’: include/TpmTypes.h:3656:35: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 3656 | return pcrSelect[pcr / 8] = (1 << (pcr % 8)) != 0; Samples/DocSamples.cpp: In member function ‘void Samples::Errors()’: Samples/DocSamples.cpp:62:25: warning: catching polymorphic type ‘class std::system_error’ by value [-Wcatch-value=] 62 | catch (system_error e) { | ^ Samples/DocSamples.cpp: In member function ‘void Samples::ThreeElementPolicy()’: Samples/DocSamples.cpp:363:12: warning: catching polymorphic type ‘class std::exception’ by value [-Wcatch-value=] 363 | catch (exception) { | ^~~~~~~~~ In file included from include/Tss.h:8, from include/Tpm2.h:22, from Samples/stdafx.h:52, from Samples/TpmCppTest.cpp:6: include/TpmTypes.h: In member function ‘bool TpmCpp::TPMS_PCR_SELECTION::PcrIsSelected(UINT32)’: include/TpmTypes.h:3656:35: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 3656 | return pcrSelect[pcr / 8] = (1 << (pcr % 8)) != 0; In file included from include/Tss.h:8, from include/Tpm2.h:22, from Samples/stdafx.h:52, from Samples/TpmConfig.cpp:6: include/TpmTypes.h: In member function ‘bool TpmCpp::TPMS_PCR_SELECTION::PcrIsSelected(UINT32)’: include/TpmTypes.h:3656:35: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 3656 | return pcrSelect[pcr / 8] = (1 << (pcr % 8)) != 0; In file included from include/Tss.h:8, from include/Tpm2.h:22, from Samples/stdafx.h:52, from Samples/Samples.cpp:6: include/TpmTypes.h: In member function ‘bool TpmCpp::TPMS_PCR_SELECTION::PcrIsSelected(UINT32)’: include/TpmTypes.h:3656:35: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 3656 | return pcrSelect[pcr / 8] = (1 << (pcr % 8)) != 0; Samples/Samples.cpp: In member function ‘void Samples::PolicyPCRSample()’: Samples/Samples.cpp:1342:12: warning: catching polymorphic type ‘class std::exception’ by value [-Wcatch-value=] 1342 | catch (exception) { | ^~~~~~~~~ Samples/Samples.cpp: In member function ‘void Samples::PolicyORSample()’: Samples/Samples.cpp:1527:12: warning: catching polymorphic type ‘class std::exception’ by value [-Wcatch-value=] 1527 | catch (exception) { | ^~~~~~~~~ Samples/Samples.cpp: In member function ‘void Samples::PolicyCounterTimerSample()’: Samples/Samples.cpp:1965:16: warning: catching polymorphic type ‘class std::exception’ by value [-Wcatch-value=] 1965 | catch (exception) { | ^~~~~~~~~ Samples/Samples.cpp: In member function ‘void Samples::Unseal()’: Samples/Samples.cpp:2125:12: warning: catching polymorphic type ‘class std::exception’ by value [-Wcatch-value=] 2125 | catch (exception) { | ^~~~~~~~~ Samples/Samples.cpp: In member function ‘void Samples::SoftwareKeys()’: Samples/Samples.cpp:2876:14: warning: unused variable ‘sigOk’ [-Wunused-variable] 2876 | bool sigOk = k.publicPart.ValidateSignature(toSign, *swSig.signature); | ^~~~~ Samples/Samples.cpp: In member function ‘void Samples::PolicyNVSample()’: Samples/Samples.cpp:3218:12: warning: catching polymorphic type ‘class std::exception’ by value [-Wcatch-value=] 3218 | catch (exception) { | ^~~~~~~~~ Samples/Samples.cpp:3213:10: warning: variable ‘policyFailed’ set but not used [-Wunused-but-set-variable] 3213 | bool policyFailed = false; | ^~~~~~~~~~~~ In file included from include/Tss.h:8, from include/Tpm2.h:22, from Samples/stdafx.h:52, from Samples/stdafx.cpp:6: include/TpmTypes.h: In member function ‘bool TpmCpp::TPMS_PCR_SELECTION::PcrIsSelected(UINT32)’: include/TpmTypes.h:3656:35: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 3656 | return pcrSelect[pcr / 8] = (1 << (pcr % 8)) != 0; CMake Warning: Manually-specified variables were not used by the project: CMAKE_EXPORT_NO_PACKAGE_REGISTRY