Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GTEST_AMBIGUOUS_ELSE_BLOCKER_ causes code analysis warning #471

Open
GoogleCodeExporter opened this issue Jun 20, 2015 · 0 comments
Open

Comments

@GoogleCodeExporter
Copy link

What steps will reproduce the problem?
1. Write a test that uses EXPECT_TRUE
2. Use Visual Studio 2013 to run CodeAnalysis
Now you'll get message:
"error C6326: Potential comparison of a constant with another constant."

It seems to be due to the GTEST_AMBIGUOUS_ELSE_BLOCKER_ macro which is expanded 
to "switch (0) case 0: default:".

What is the expected output? What do you see instead?
I would like no error/warning messages.

What version of Google Test are you using? On what operating system?
1.7.0

Original issue reported on code.google.com by [email protected] on 12 Aug 2014 at 3:40

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant