]> git.lyx.org Git - features.git/commitdiff
Fix a couple of compiler warnings
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Wed, 3 Dec 2014 17:47:42 +0000 (18:47 +0100)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Mon, 8 Dec 2014 08:47:45 +0000 (09:47 +0100)
configure.ac
src/Cursor.cpp
status.21x

index 94235450214c22cfc65faa70128af47ede7d7525..fb6251b4f25c9e561dd60ba7ceef1be25f0ab64f 100644 (file)
@@ -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
index d43196516365a45b60924b6d1b1bbe470ab6535a..919396c4eb4c7bbf1b777de73022d2c3bfcbe961 100644 (file)
@@ -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)
index ebb41e122cd068f15e8c8afac53da07b245e47c7..aa5108df58f6a785a1ed8ae73aaad9ce427ad7d4 100644 (file)
@@ -167,3 +167,4 @@ What's new
 
 * BUILD/INSTALLATION
 
+- fix a couple of compiler warnings.