dreamstreat / libkml

Automatically exported from code.google.com/p/libkml
Other
0 stars 0 forks source link

make check fails with "false" casting compilation error #188

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. svn checkout of trunk.
2. configure and build
3. make check

Platform: Ubuntu 12.04.1 LTS

What is the expected output? What do you see instead?

string_util_test.cc: In member function ‘virtual void 
kmlbase::StringUtilTest_TestFromString_Test::TestBody()’:
string_util_test.cc:162:3: error: converting ‘false’ to pointer type for 
argument 1 of ‘char 
testing::internal::IsNullLiteralHelper(testing::internal::Secret*)’ 
[-Werror=conversion-null]

...

Original issue reported on code.google.com by fwarmerdam@gmail.com on 29 Jan 2013 at 11:01

GoogleCodeExporter commented 8 years ago
For now I am working around this using the follow test command (dropping 
-Werror from build options for testing):

  make -j 10 check AM_TEST_CXXFLAGS='-Wall -Wextra -Wno-unused-parameter  -ansi -fno-rtti -DGTEST_HAS_RTTI=0'

Original comment by fwarmerdam@gmail.com on 30 Jan 2013 at 11:22