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
Original issue reported on code.google.com by
ameaijou@gmail.com
on 4 Jan 2010 at 3:20