|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r74770 - trunk/libs/geometry/test
From: mateusz_at_[hidden]
Date: 2011-10-06 20:00:27
Author: mloskot
Date: 2011-10-06 20:00:26 EDT (Thu, 06 Oct 2011)
New Revision: 74770
URL: http://svn.boost.org/trac/boost/changeset/74770
Log:
[geometry] Silenced clang warning: unused variable check_is_small. See ticket #5986.
Text files modified:
trunk/libs/geometry/test/geometry_test_common.hpp | 20 ++++++++++++++++----
1 files changed, 16 insertions(+), 4 deletions(-)
Modified: trunk/libs/geometry/test/geometry_test_common.hpp
==============================================================================
--- trunk/libs/geometry/test/geometry_test_common.hpp (original)
+++ trunk/libs/geometry/test/geometry_test_common.hpp 2011-10-06 20:00:26 EDT (Thu, 06 Oct 2011)
@@ -32,16 +32,28 @@
#endif
-
#include <boost/foreach.hpp>
// Include some always-included-for-testing files
#if ! defined(BOOST_GEOMETRY_NO_BOOST_TEST)
-# include <boost/test/floating_point_comparison.hpp>
-# include <boost/test/included/test_exec_monitor.hpp>
+
+// Until Boost fixes it, silence warning issued by clang:
+// warning: unused variable 'check_is_close' [-Wunused-variable]
+#ifdef __clang__
+# pragma clang diagnostic push
+# pragma clang diagnostic ignored "-Wunused-variable"
+#endif
+
+# include <boost/test/floating_point_comparison.hpp>
+# include <boost/test/included/test_exec_monitor.hpp>
//# include <boost/test/included/prg_exec_monitor.hpp>
-# include <boost/test/impl/execution_monitor.ipp>
+# include <boost/test/impl/execution_monitor.ipp>
+
+#ifdef __clang__
+# pragma clang diagnostic pop
+#endif
+
#endif
Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk