summaryrefslogtreecommitdiff
path: root/src/mongo/crypto/mechanism_scram.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/crypto/mechanism_scram.cpp')
-rw-r--r--src/mongo/crypto/mechanism_scram.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/mongo/crypto/mechanism_scram.cpp b/src/mongo/crypto/mechanism_scram.cpp
index 329da56c9f8..5bc797ef704 100644
--- a/src/mongo/crypto/mechanism_scram.cpp
+++ b/src/mongo/crypto/mechanism_scram.cpp
@@ -209,7 +209,9 @@ std::string generateClientProof(const unsigned char saltedPassword[hashSize],
* TODO: evaluate if LTO inlines or changes the code flow of this function.
*/
NOINLINE_DECL
-bool memequal(volatile const unsigned char* s1, volatile const unsigned char* s2, size_t length) {
+bool memequal(volatile const unsigned char* s1, // NOLINT - using volatile to
+ volatile const unsigned char* s2, // NOLINT - disable compiler optimizations
+ size_t length) {
unsigned char ret = 0;
for (size_t i = 0; i < length; ++i) {