Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r85478 - trunk/boost/geometry/strategies/transform
From: barend.gehrels_at_[hidden]
Date: 2013-08-26 16:18:28


Author: barendgehrels
Date: 2013-08-26 16:18:27 EDT (Mon, 26 Aug 2013)
New Revision: 85478
URL: http://svn.boost.org/trac/boost/changeset/85478

Log:
[geometry] avoid clang warning about unused ublas function

Text files modified:
   trunk/boost/geometry/strategies/transform/matrix_transformers.hpp | 11 +++++++++++
   1 files changed, 11 insertions(+), 0 deletions(-)

Modified: trunk/boost/geometry/strategies/transform/matrix_transformers.hpp
==============================================================================
--- trunk/boost/geometry/strategies/transform/matrix_transformers.hpp Mon Aug 26 14:44:47 2013 (r85477)
+++ trunk/boost/geometry/strategies/transform/matrix_transformers.hpp 2013-08-26 16:18:27 EDT (Mon, 26 Aug 2013) (r85478)
@@ -22,9 +22,20 @@
 #define BOOST_UBLAS_TYPE_CHECK 0
 
 #include <boost/numeric/conversion/cast.hpp>
+
+#if defined(__clang__)
+// Avoid warning about unused UBLAS function: boost_numeric_ublas_abs
+#pragma clang diagnostic push
+#pragma clang diagnostic ignored "-Wunused-function"
+#endif
+
 #include <boost/numeric/ublas/vector.hpp>
 #include <boost/numeric/ublas/matrix.hpp>
 
+#if defined(__clang__)
+#pragma clang diagnostic pop
+#endif
+
 #include <boost/geometry/core/access.hpp>
 #include <boost/geometry/core/coordinate_dimension.hpp>
 #include <boost/geometry/core/cs.hpp>


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