CR50: update sources to build under clang 3.9
Libfuzz requires clang 3.9, which fails to
build TPM2 as is with -fsanitize-coverage.
This change makes appropriate changes to enable
compilation under clang 3.9.
BRANCH=none
BUG=chrome-os-partner:43025,chrome-os-partner:47524
TEST=compilation under clang 3.8 / 3.9 pass
Change-Id: I1dc7447ac719d9a9a0cb8f0e4ee5a8aeddb403bf
Signed-off-by: nagendra modadugu <[email protected]>
Reviewed-on: https://chromium-review.googlesource.com/337662
Commit-Ready: Nagendra Modadugu <[email protected]>
Tested-by: Nagendra Modadugu <[email protected]>
Reviewed-by: Bill Richardson <[email protected]>
diff --git a/CryptUtil.c b/CryptUtil.c
index 912c365..a60703c 100644
--- a/CryptUtil.c
+++ b/CryptUtil.c
@@ -3171,7 +3171,7 @@
TPM_ALG_ID scheme // IN: the algorithm selector
)
{
- if( scheme != scheme
+ if( 0
# ifdef TPM_ALG_ECDAA
|| scheme == TPM_ALG_ECDAA
# endif // TPM_ALG_ECDAA