In file included from include/Tss.h:8:0, 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] return pcrSelect[pcr / 8] = (1 << (pcr % 8)) != 0; In file included from include/Tss.h:8:0, 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] return pcrSelect[pcr / 8] = (1 << (pcr % 8)) != 0; In file included from include/Tss.h:8:0, 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] return pcrSelect[pcr / 8] = (1 << (pcr % 8)) != 0; In file included from include/Tss.h:8:0, 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] return pcrSelect[pcr / 8] = (1 << (pcr % 8)) != 0; In file included from include/Tss.h:8:0, 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] return pcrSelect[pcr / 8] = (1 << (pcr % 8)) != 0; In file included from include/Tss.h:8:0, 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] return pcrSelect[pcr / 8] = (1 << (pcr % 8)) != 0; In file included from include/Tss.h:8:0, 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] 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] 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] int res = RSA_sign(TpmAlgIdToNid(scheme->hashAlg), &toSign[0], (unsigned)toSign.size(), ^~~ In file included from include/Tss.h:8:0, 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] return pcrSelect[pcr / 8] = (1 << (pcr % 8)) != 0; In file included from include/Tss.h:8:0, 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] return pcrSelect[pcr / 8] = (1 << (pcr % 8)) != 0; In file included from include/Tss.h:8:0, 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] return pcrSelect[pcr / 8] = (1 << (pcr % 8)) != 0; In file included from include/Tss.h:8:0, 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] return pcrSelect[pcr / 8] = (1 << (pcr % 8)) != 0; In file included from include/Tss.h:8:0, 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] return pcrSelect[pcr / 8] = (1 << (pcr % 8)) != 0; In file included from include/Tss.h:8:0, 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] return pcrSelect[pcr / 8] = (1 << (pcr % 8)) != 0; In file included from include/Tss.h:8:0, 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] return pcrSelect[pcr / 8] = (1 << (pcr % 8)) != 0; In file included from include/Tss.h:8:0, 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] return pcrSelect[pcr / 8] = (1 << (pcr % 8)) != 0; In file included from include/Tss.h:8:0, 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] return pcrSelect[pcr / 8] = (1 << (pcr % 8)) != 0; Samples/Samples.cpp: In member function ‘void Samples::SoftwareKeys()’: Samples/Samples.cpp:2876:14: warning: unused variable ‘sigOk’ [-Wunused-variable] bool sigOk = k.publicPart.ValidateSignature(toSign, *swSig.signature); ^~~~~ Samples/Samples.cpp: In member function ‘void Samples::PolicyNVSample()’: Samples/Samples.cpp:3213:10: warning: variable ‘policyFailed’ set but not used [-Wunused-but-set-variable] bool policyFailed = false; ^~~~~~~~~~~~ CMake Warning: Manually-specified variables were not used by the project: CMAKE_EXPORT_NO_PACKAGE_REGISTRY