From 36aff6a526a7195b2c6b81ad80fc4ec6ab0c9f24 Mon Sep 17 00:00:00 2001 From: Abhishek Jain Date: Tue, 22 Dec 2020 16:42:28 +0530 Subject: [PATCH] Fix for compiler warning issue#8145 Corrected the == check condition. Signed-off-by: Abhishek Jain --- src/google/protobuf/compiler/cpp/cpp_message.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/google/protobuf/compiler/cpp/cpp_message.cc b/src/google/protobuf/compiler/cpp/cpp_message.cc index 9bfb76e6346b..c72ed6857ee2 100644 --- a/src/google/protobuf/compiler/cpp/cpp_message.cc +++ b/src/google/protobuf/compiler/cpp/cpp_message.cc @@ -1070,7 +1070,7 @@ void MessageGenerator::GenerateClassDefinition(io::Printer* printer) { " }\n", descriptor_->field(1)->full_name()); } else { - GOOGLE_CHECK(utf8_check = VERIFY); + GOOGLE_CHECK(utf8_check == VERIFY); format( " static bool ValidateValue(std::string* s) {\n" "#ifndef NDEBUG\n"