summaryrefslogtreecommitdiff
path: root/fips140.cpp
diff options
context:
space:
mode:
authororangefour <thirdorange@gmx.com>2018-10-22 13:50:04 +0200
committerJeffrey Walton <noloader@gmail.com>2018-10-22 07:50:04 -0400
commit253f1ba5dae248cd194619487a33574a1849e7ad (patch)
tree5dfeeed83a895aac797cb199b50a414876cd2768 /fips140.cpp
parent8790467fac540fca4f1f60ab14b91b40b58b9be6 (diff)
downloadcryptopp-git-253f1ba5dae248cd194619487a33574a1849e7ad.tar.gz
Fix unused variable warnings (GH #723)
Diffstat (limited to 'fips140.cpp')
-rw-r--r--fips140.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/fips140.cpp b/fips140.cpp
index 1f911fc5..02e1af6a 100644
--- a/fips140.cpp
+++ b/fips140.cpp
@@ -35,11 +35,13 @@ PowerUpSelfTestStatus CRYPTOPP_API GetPowerUpSelfTestStatus()
{
return g_powerUpSelfTestStatus;
}
-
+
+#if CRYPTOPP_ENABLE_COMPLIANCE_WITH_FIPS_140_2
// One variable for all threads for compatibility. Previously this
// was a ThreadLocalStorage variable, which is per-thread. Also see
// https://github.com/weidai11/cryptopp/issues/208
static bool s_inProgress = false;
+#endif
bool PowerUpSelfTestInProgressOnThisThread()
{