Fix a couple of compiler warnings

This commit is contained in:
Jean-Marc Lasgouttes 2014-12-03 18:47:42 +01:00
parent b7ec25866b
commit 565cb2a3f0
3 changed files with 2 additions and 16 deletions

View 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

View 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)

View File

@ -167,3 +167,4 @@ What's new
* BUILD/INSTALLATION
- fix a couple of compiler warnings.