gtest.cc: declare fail_if_no_test_linked flag

Clang's -Wmissing-variable-declarations flags this as an issue since the
flag is only used in `gtest.cc`. Declare the flag beforehand to ensure
that the variable scope is properly limited to `gtest.cc`.

MFC after:	1 week
MFC with:	46333229c6
Ref:		https://github.com/google/googletest/pull/4898
This commit is contained in:
Enji Cooper
2026-01-28 17:22:42 -08:00
parent 46333229c6
commit 3926ae98ad
@@ -263,6 +263,7 @@ GTEST_DEFINE_bool_(
testing::GetDefaultFailFast()),
"True if and only if a test failure should stop further test execution.");
GTEST_DECLARE_bool_(fail_if_no_test_linked);
GTEST_DEFINE_bool_(
fail_if_no_test_linked,
testing::internal::BoolFromGTestEnv("fail_if_no_test_linked", false),