ithron / googletest

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

g++ -pedantic produces compile errors #152

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Compile some test code with "g++ -pedantic"

What is the expected output? What do you see instead?
I can see the following warning and errors.

In file included from /home/kee/local/include/gtest/gtest.h:72,
                 from unit_test.cc:3:
/home/kee/local/include/gtest/gtest-typed-test.h:236:46: warning: anonymous 
variadic macros were introduced in C99
In file included from /home/kee/local/include/gtest/internal/gtest-
internal.h:41,
                 from /home/kee/local/include/gtest/gtest.h:66,
                 from unit_test.cc:4:
/home/kee/local/include/gtest/internal/gtest-port.h:713: error: ISO C++ 
1998 does not support 'long long'
/home/kee/local/include/gtest/internal/gtest-port.h:772: error: ISO C++ 
1998 does not support 'long long'
/home/kee/local/include/gtest/internal/gtest-port.h:773: error: ISO C++ 
1998 does not support 'long long'

What version of the product are you using? On what operating system?
- OS: Fedora 10
- Compiler: g++ (GCC) 4.3.2 20081105 (Red Hat 4.3.2-7)
- Gtest: gtest 1.3.0

Please provide any additional information below.

Original issue reported on code.google.com by k...@ketan.jp on 31 May 2009 at 1:11

GoogleCodeExporter commented 9 years ago
Thanks for the report.  We do not plan to support -pedantic at this time given 
our
resources.

Original comment by zhanyong...@gmail.com on 2 Jun 2009 at 7:42