From f23cf00027c9568c5f3a63f241314c6c5cb614b0 Mon Sep 17 00:00:00 2001 From: Abseil Team Date: Wed, 27 Jan 2021 16:30:26 -0800 Subject: [PATCH] Googletest export Address `-Wpedantic` issue introduced in https://github.com/google/googletest/pull/3204 Raised via https://github.com/google/googletest/commit/4898cdacfec11e71fa3083cdbc935852ad8162e9#commitcomment-46413996 PiperOrigin-RevId: 354198931 --- googletest/include/gtest/gtest.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/googletest/include/gtest/gtest.h b/googletest/include/gtest/gtest.h index 6c305bcb..71edf333 100644 --- a/googletest/include/gtest/gtest.h +++ b/googletest/include/gtest/gtest.h @@ -1616,7 +1616,8 @@ AssertionResult CmpHelper##op_name(const char* expr1, const char* expr2, \ } else {\ return CmpHelperOpFailure(expr1, expr2, val1, val2, #op);\ }\ -} +}\ +static_assert(true, "Consume semicolon.") // INTERNAL IMPLEMENTATION - DO NOT USE IN A USER PROGRAM.