summaryrefslogtreecommitdiffstats
path: root/googletest/include/gtest
diff options
context:
space:
mode:
authorAbseil Team <absl-team@google.com>2021-01-27 16:30:26 -0800
committerDino Radaković <dinor@google.com>2021-02-05 10:39:47 -0800
commitf23cf00027c9568c5f3a63f241314c6c5cb614b0 (patch)
treedb5d4c3807285952359d8a4322b44c4dd0442f3a /googletest/include/gtest
parent726118846d2ad431e40f3c9690962eb2eaed813b (diff)
downloadgoogletest-f23cf00027c9568c5f3a63f241314c6c5cb614b0.tar.gz
googletest-f23cf00027c9568c5f3a63f241314c6c5cb614b0.zip
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
Diffstat (limited to 'googletest/include/gtest')
-rw-r--r--googletest/include/gtest/gtest.h3
1 files changed, 2 insertions, 1 deletions
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.
OpenPOWER on IntegriCloud