Skip to content

Commit c7d0bc8

Browse files
Merge pull request #4164 from sergio-nsk:patch-2
PiperOrigin-RevId: 512753220 Change-Id: I3f7ad6c62c738d1d7405c50924b36deac8a9ac85
2 parents 6882aa0 + 10493e3 commit c7d0bc8

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

googletest/src/gtest.cc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5409,6 +5409,8 @@ int UnitTest::Run() {
54095409
in_death_test_child_process
54105410
? nullptr
54115411
: internal::posix::GetEnv("TEST_PREMATURE_EXIT_FILE"));
5412+
#else
5413+
const bool in_death_test_child_process = false;
54125414
#endif // GTEST_HAS_DEATH_TEST
54135415

54145416
// Captures the value of GTEST_FLAG(catch_exceptions). This value will be
@@ -5456,6 +5458,8 @@ int UnitTest::Run() {
54565458
}
54575459
#endif
54585460
}
5461+
#else
5462+
(void)in_death_test_child_process; // Needed inside the #if block above
54595463
#endif // GTEST_OS_WINDOWS
54605464

54615465
return internal::HandleExceptionsInMethodIfSupported(

0 commit comments

Comments
 (0)