googletest icon indicating copy to clipboard operation
googletest copied to clipboard

gtest.cc: declare fail_if_no_test_linked flag

Open ngie-eign opened this issue 1 week ago • 0 comments

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

Closes: #4897

ngie-eign avatar Jan 04 '26 21:01 ngie-eign