|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r82336 - trunk/boost/xpressive/detail/utility
From: eric_at_[hidden]
Date: 2013-01-03 13:53:54
Author: eric_niebler
Date: 2013-01-03 13:53:54 EST (Thu, 03 Jan 2013)
New Revision: 82336
URL: http://svn.boost.org/trac/boost/changeset/82336
Log:
make symbols test pass on gcc with -Wall
Text files modified:
trunk/boost/xpressive/detail/utility/symbols.hpp | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
Modified: trunk/boost/xpressive/detail/utility/symbols.hpp
==============================================================================
--- trunk/boost/xpressive/detail/utility/symbols.hpp (original)
+++ trunk/boost/xpressive/detail/utility/symbols.hpp 2013-01-03 13:53:54 EST (Thu, 03 Jan 2013)
@@ -206,8 +206,10 @@
result_type search(BidiIter &begin, BidiIter end, Trans trans, node* p) const
{
result_type r = 0;
+ #ifdef BOOST_DISABLE_THREADS
node* p2 = p;
bool left = false;
+ #endif
char_type c1 = (begin != end ? trans(*begin) : 0);
while(p)
{
@@ -245,14 +247,18 @@
}
else if(c1 < p->ch)
{
+ #ifdef BOOST_DISABLE_THREADS
left = true;
p2 = p;
+ #endif
p = p->lo;
}
else // (c1 > p->ch)
{
+ #ifdef BOOST_DISABLE_THREADS
left = false;
p2 = p;
+ #endif
p = p->hi;
}
}
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