commit 565cb2a3f0c5993fc086e846ee05ee245a4e36d7
Author: Jean-Marc Lasgouttes <lasgout...@lyx.org>
Date:   Wed Dec 3 18:47:42 2014 +0100

    Fix a couple of compiler warnings

diff --git a/configure.ac b/configure.ac
index 9423545..fb6251b 100644
--- a/configure.ac
+++ b/configure.ac
@@ -275,6 +275,7 @@ char * strerror(int n);
 #define BOOST_DISABLE_THREADS 1
 #define BOOST_NO_WREGEX 1
 #define BOOST_NO_WSTRING 1
+#define BOOST_SIGNALS_NO_DEPRECATION_WARNING 1
 
 // TR1 regex not supported in GCC <= 4.5
 #ifndef LYX_USE_TR1
diff --git a/src/Cursor.cpp b/src/Cursor.cpp
index d431965..919396c 100644
--- a/src/Cursor.cpp
+++ b/src/Cursor.cpp
@@ -65,22 +65,6 @@ namespace lyx {
 
 namespace {
 
-bool positionable(DocIterator const & cursor, DocIterator const & anchor)
-{
-       // avoid deeper nested insets when selecting
-       if (cursor.depth() > anchor.depth())
-               return false;
-
-       // anchor might be deeper, should have same path then
-       for (size_t i = 0; i < cursor.depth(); ++i)
-               if (&cursor[i].inset() != &anchor[i].inset())
-                       return false;
-
-       // position should be ok.
-       return true;
-}
-
-
 // Find position closest to (x, y) in cell given by iter.
 // Used only in mathed
 DocIterator bruteFind2(Cursor const & c, int x, int y)
diff --git a/status.21x b/status.21x
index ebb41e1..aa5108d 100644
--- a/status.21x
+++ b/status.21x
@@ -167,3 +167,4 @@ What's new
 
 * BUILD/INSTALLATION
 
+- fix a couple of compiler warnings.

Reply via email to