Skip to content

Conversation

@ngie-eign
Copy link
Contributor

@ngie-eign ngie-eign commented Jan 4, 2026

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

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`.

Signed-off-by: Enji Cooper <yaneurabeya@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG] 1.17.0 fails to compile with clang -Werror -Wmissing-variable-declarations

1 participant