From aae8ba47ee8feccdc46169f3a215ee6c9505da12 Mon Sep 17 00:00:00 2001 From: Mariusz Zaborski Date: Wed, 16 Mar 2022 09:18:32 -0400 Subject: [PATCH] Expect the semicolon at the end of SAPI_ASSERT_OK_AND_ASSIGN --- sandboxed_api/util/status_matchers.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sandboxed_api/util/status_matchers.h b/sandboxed_api/util/status_matchers.h index 46e44e9..fee4a86 100644 --- a/sandboxed_api/util/status_matchers.h +++ b/sandboxed_api/util/status_matchers.h @@ -30,7 +30,8 @@ #define SAPI_ASSERT_OK_AND_ASSIGN_IMPL(statusor, lhs, rexpr) \ auto statusor = (rexpr); \ ASSERT_THAT(statusor.status(), ::sapi::IsOk()); \ - lhs = std::move(statusor).value(); + lhs = std::move(statusor).value(); \ + do {} while(0) namespace sapi { namespace internal {