[Liblas-commits] hg-main-tree: gcc lint
liblas-commits at liblas.org
liblas-commits at liblas.org
Tue Aug 16 16:05:00 EDT 2011
details: http://hg.libpc.orghg-main-tree/rev/ccdbae669d00
changeset: 1115:ccdbae669d00
user: mpg
date: Tue Aug 16 13:04:42 2011 -0700
description:
gcc lint
diffstat:
test/unit/StatsFilterTest.cpp | 8 ++++++--
1 files changed, 6 insertions(+), 2 deletions(-)
diffs (27 lines):
diff -r c386fd94bb89 -r ccdbae669d00 test/unit/StatsFilterTest.cpp
--- a/test/unit/StatsFilterTest.cpp Tue Aug 16 12:15:18 2011 -0700
+++ b/test/unit/StatsFilterTest.cpp Tue Aug 16 13:04:42 2011 -0700
@@ -40,9 +40,13 @@
#include <pdal/filters/StatsFilter.hpp>
#include <pdal/filters/StatsFilterIterator.hpp>
+#ifdef PDAL_COMPILER_GCC
+#pragma GCC diagnostic ignored "-Wfloat-equal"
+#endif
+
using namespace pdal;
-BOOST_AUTO_TEST_SUITE(StatsFilterTest)
+BOOST_AUTO_TEST_SUITE(StabtsFilterTest)
BOOST_AUTO_TEST_CASE(test1)
{
@@ -68,7 +72,7 @@
boost::uint64_t count;
filter.getData(count, minx, miny, minz, maxx, maxy, maxz, avgx, avgy, avgz);
- BOOST_CHECK_EQUAL(count, 1000);
+ BOOST_CHECK_EQUAL(count, 1000u);
BOOST_CHECK_CLOSE(minx, 1.0, 0.0001);
BOOST_CHECK_CLOSE(miny, 2.0, 0.0001);
More information about the Liblas-commits
mailing list