We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 6882aa0 + 10493e3 commit c7d0bc8Copy full SHA for c7d0bc8
googletest/src/gtest.cc
@@ -5409,6 +5409,8 @@ int UnitTest::Run() {
5409
in_death_test_child_process
5410
? nullptr
5411
: internal::posix::GetEnv("TEST_PREMATURE_EXIT_FILE"));
5412
+#else
5413
+ const bool in_death_test_child_process = false;
5414
#endif // GTEST_HAS_DEATH_TEST
5415
5416
// Captures the value of GTEST_FLAG(catch_exceptions). This value will be
@@ -5456,6 +5458,8 @@ int UnitTest::Run() {
5456
5458
}
5457
5459
#endif
5460
5461
5462
+ (void)in_death_test_child_process; // Needed inside the #if block above
5463
#endif // GTEST_OS_WINDOWS
5464
5465
return internal::HandleExceptionsInMethodIfSupported(
0 commit comments