superupon / googletest

Automatically exported from code.google.com/p/googletest
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

Google Test does not compile with strict warnings #245

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Most of my projects have a strict warnings policy, but Google Test fails to
compile with GCC's -Wshadow, -Wundef, -Wswitch-enum, -Wold-style-cast, or
-Wredundant-decls. This isn't a problem for people who use GT as a static
or dynamic library, but those of us who use the fuse_gtest_files.py script
and get a combined gtest.h and gtest-all.cc have this problem.

Of course it's never possible to make entirely portable code that has no
warnings at all, but some of these are very easy to fix, especially most of
the shadowed declaration warnings. At the very least it would be possible
to reduce the number of anti-warning flags needed to compile gtest-all.cc.

Original issue reported on code.google.com by ameaijou@gmail.com on 4 Jan 2010 at 3:20

GoogleCodeExporter commented 9 years ago
Please try the head revision in the trunk.  We have made it much more 
warning-free
than v1.4.0.

Original comment by w...@google.com on 4 Jan 2010 at 5:18