Skip to content

Commit e1d3927

Browse files
committed
Fix ABSL_ASSERT when compiling with -Wcomma
1 parent 09d1074 commit e1d3927

File tree

1 file changed

+3
-3
lines changed
  • Firestore/third_party/abseil-cpp/absl/base

1 file changed

+3
-3
lines changed

Firestore/third_party/abseil-cpp/absl/base/macros.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -192,11 +192,11 @@ enum LinkerInitialized {
192192
// https://akrzemi1.wordpress.com/2017/05/18/asserts-in-constexpr-functions/
193193
#if defined(NDEBUG)
194194
#define ABSL_ASSERT(expr) \
195-
(false ? static_cast<void>(expr) : static_cast<void>(0))
195+
static_cast<void>(false ? static_cast<void>(expr) : static_cast<void>(0))
196196
#else
197197
#define ABSL_ASSERT(expr) \
198-
(ABSL_PREDICT_TRUE((expr)) ? static_cast<void>(0) \
199-
: [] { assert(false && #expr); }()) // NOLINT
198+
static_cast<void>(ABSL_PREDICT_TRUE((expr)) ? static_cast<void>(0) \
199+
: [] { assert(false && #expr); }()) // NOLINT
200200
#endif
201201

202202
#ifdef ABSL_HAVE_EXCEPTIONS

0 commit comments

Comments
 (0)